ContentNavigationGuiConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 13
dl 0
loc 65
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContentWidgetTemplates() 0 10 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\ContentNavigationGui;
11
12
use Spryker\Shared\ContentNavigationGui\ContentNavigationGuiConfig as SprykerContentNavigationGuiConfig;
13
14
class ContentNavigationGuiConfig extends SprykerContentNavigationGuiConfig
15
{
16
    /**
17
     * @uses \Pyz\Shared\ContentNavigation\ContentNavigationConfig::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER
18
     *
19
     * Content item navigation header template identifier.
20
     *
21
     * @var string
22
     */
23
    protected const WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER = 'navigation-header';
24
25
    /**
26
     * @uses \Pyz\Shared\ContentNavigation\ContentNavigationConfig::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER_MOBILE
27
     *
28
     * Content item navigation header mobile template identifier.
29
     *
30
     * @var string
31
     */
32
    protected const WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER_MOBILE = 'navigation-header-mobile';
33
34
    /**
35
     * @uses \Pyz\Shared\ContentNavigation\ContentNavigationConfig::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_FOOTER
36
     *
37
     * Content item navigation footer template identifier.
38
     *
39
     * @var string
40
     */
41
    protected const WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_FOOTER = 'navigation-footer';
42
43
    /**
44
     * Content item navigation header template name.
45
     *
46
     * @var string
47
     */
48
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_HEADER = 'Navigation Header';
49
50
    /**
51
     * Content item navigation header mobile template name.
52
     *
53
     * @var string
54
     */
55
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_HEADER_MOBILE = 'Navigation Header Mobile';
56
57
    /**
58
     * Content item navigation footer template name.
59
     *
60
     * @var string
61
     */
62
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_FOOTER = 'Navigation Footer';
63
64
    /**
65
     * @api
66
     *
67
     * @return array<string>
68
     */
69
    public function getContentWidgetTemplates(): array
70
    {
71
        $contentWidgetTemplates = parent::getContentWidgetTemplates();
72
        $contentWidgetTemplates += [
73
            static::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER => static::WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_HEADER,
74
            static::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_HEADER_MOBILE => static::WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_HEADER_MOBILE,
75
            static::WIDGET_TEMPLATE_IDENTIFIER_LIST_NAVIGATION_FOOTER => static::WIDGET_TEMPLATE_DISPLAY_NAME_LIST_NAVIGATION_FOOTER,
76
        ];
77
78
        return $contentWidgetTemplates;
79
    }
80
}
81