ContentBannerGuiConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
c 0
b 0
f 0
dl 0
loc 22
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
     * @uses \Pyz\Shared\ContentBanner\ContentBannerConfig::WIDGET_TEMPLATE_IDENTIFIER_HOME_PAGE
18
     */
19
    protected const WIDGET_TEMPLATE_IDENTIFIER_HOME_PAGE = 'home-page';
20
21
    /**
22
     * Content item banner home page template name
23
     */
24
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_HOME_PAGE = 'content_banner.template.home-page';
25
26
    /**
27
     * @return array<string, string>
28
     */
29
    public function getContentWidgetTemplates(): array
30
    {
31
        $contentWidgetTemplates = parent::getContentWidgetTemplates();
32
33
        return [
34
            static::WIDGET_TEMPLATE_IDENTIFIER_HOME_PAGE => static::WIDGET_TEMPLATE_DISPLAY_NAME_HOME_PAGE,
35
        ] + $contentWidgetTemplates;
36
    }
37
}
38