CmsSlotBlockConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTemplateConditionsAssignment() 0 11 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\Zed\CmsSlotBlock;
11
12
use Spryker\Shared\CmsSlotBlockCategoryConnector\CmsSlotBlockCategoryConnectorConfig;
13
use Spryker\Shared\CmsSlotBlockCmsConnector\CmsSlotBlockCmsConnectorConfig;
14
use Spryker\Shared\CmsSlotBlockProductCategoryConnector\CmsSlotBlockProductCategoryConnectorConfig;
15
use Spryker\Zed\CmsSlotBlock\CmsSlotBlockConfig as SprykerCmsSlotBlockConfig;
16
17
class CmsSlotBlockConfig extends SprykerCmsSlotBlockConfig
18
{
19
    /**
20
     * @return array<array<string>>
21
     */
22
    public function getTemplateConditionsAssignment(): array
23
    {
24
        return [
25
            '@CatalogPage/views/catalog-with-cms-slot/catalog-with-cms-slot.twig' => [
26
                CmsSlotBlockCategoryConnectorConfig::CONDITION_KEY,
27
            ],
28
            '@Cms/templates/placeholders-title-content-slot/placeholders-title-content-slot.twig' => [
29
                CmsSlotBlockCmsConnectorConfig::CONDITION_KEY,
30
            ],
31
            '@ProductDetailPage/views/pdp/pdp.twig' => [
32
                CmsSlotBlockProductCategoryConnectorConfig::CONDITION_KEY,
33
            ],
34
        ];
35
    }
36
}
37