getContentWidgetTemplates()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
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
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