ContentProductSetGuiConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 23
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContentWidgetTemplates() 0 6 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\ContentProductSetGui;
11
12
use Spryker\Shared\ContentProductSetGui\ContentProductSetGuiConfig as SprykerContentProductSetGuiConfig;
13
14
class ContentProductSetGuiConfig extends SprykerContentProductSetGuiConfig
15
{
16
    /**
17
     * @var string
18
     */
19
    protected const WIDGET_TEMPLATE_IDENTIFIER_ADD_TO_CART = 'add-to-cart';
20
21
    /**
22
     * Content item banner default template name
23
     *
24
     * @var string
25
     */
26
    protected const WIDGET_TEMPLATE_DISPLAY_NAME_ADD_TO_CART = 'content_product_set.template.add_to_cart';
27
28
    /**
29
     * @return array<string, string>
30
     */
31
    public function getContentWidgetTemplates(): array
32
    {
33
        return array_merge(
34
            parent::getContentWidgetTemplates(),
35
            [
36
                static::WIDGET_TEMPLATE_IDENTIFIER_ADD_TO_CART => static::WIDGET_TEMPLATE_DISPLAY_NAME_ADD_TO_CART,
37
            ],
38
        );
39
    }
40
}
41