ContentBannerGuiConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 36
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContentWidgetTemplates() 0 7 1
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
declare(strict_types = 1);
9
10
namespace Pyz\Shared\ContentBannerGui;
11
12
use Spryker\Shared\ContentBannerGui\ContentBannerGuiConfig as SprykerContentBannerGuiConfig;
13
14
class ContentBannerGuiConfig extends SprykerContentBannerGuiConfig
15
{
16
    /**
17
     * @var string
18
     */
19
    protected const WIDGET_TEMPLATE_IDENTIFIER_SLIDER_WITHOUT_LINK = 'slider-without-link';
20
21
    /**
22
     * @var string
23
     */
24
    protected const WIDGET_TEMPLATE_IDENTIFIER_SLIDER = 'slider';
25
26
    /**
27
     * Content item banner default template name
28
     *
29
     * @var string
30
     */
31
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_SLIDER = 'content_banner.template.slider';
32
33
    /**
34
     * Content item banner top-title template name
35
     *
36
     * @var string
37
     */
38
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_SLIDER_WITHOUT_LINK = 'content_banner.template.slider-without-link';
39
40
    /**
41
     * @return array<string, string>
42
     */
43
    public function getContentWidgetTemplates(): array
44
    {
45
        return array_merge(
46
            parent::getContentWidgetTemplates(),
47
            [
48
                static::WIDGET_TEMPLATE_IDENTIFIER_SLIDER => static::WIDGET_TEMPLATE_DISPLAY_NAME_SLIDER,
49
                static::WIDGET_TEMPLATE_IDENTIFIER_SLIDER_WITHOUT_LINK => static::WIDGET_TEMPLATE_DISPLAY_NAME_SLIDER_WITHOUT_LINK,
50
            ],
51
        );
52
    }
53
}
54