Passed
Pull Request — master (#319)
by Dmitry
22:36
created

ContentProductSetTwigFunctionProvider::getFunction()   A

Complexity

Conditions 5
Paths 1

Size

Total Lines 28
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 28
rs 9.3888
c 0
b 0
f 0
cc 5
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Yves\ContentProductSetWidget\Twig;
9
10
use SprykerShop\Yves\ContentProductSetWidget\Twig\ContentProductSetTwigFunctionProvider as SprykerShopContentProductSetTwigFunctionProvider;
11
12
/**
13
 * @method \Pyz\Yves\ContentProductSetWidget\ContentProductSetWidgetFactory getFactory()
14
 */
15
class ContentProductSetTwigFunctionProvider extends SprykerShopContentProductSetTwigFunctionProvider
16
{
17
    /**
18
     * @uses \Pyz\Shared\ContentProductSet\ContentProductSetConfig::WIDGET_TEMPLATE_IDENTIFIER_LANDING_PAGE
19
     *
20
     * @var string
21
     */
22
    protected const WIDGET_TEMPLATE_IDENTIFIER_LANDING_PAGE = 'landing-page';
23
24
    /**
25
     * @return array<string, string>
26
     */
27
    protected function getAvailableTemplates(): array
28
    {
29
        $contentWidgetTemplates = parent::getAvailableTemplates();
30
31
        return [
32
                static::WIDGET_TEMPLATE_IDENTIFIER_LANDING_PAGE => '@ContentProductSetWidget/views/content-product-set-landing-page/content-product-set-landing-page.twig',
33
            ] + $contentWidgetTemplates;
34
    }
35
}
36