CmsGuiDependencyProvider   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 10
dl 0
loc 47
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCmsGlossaryBeforeSavePlugins() 0 4 1
A getCmsGlossaryAfterFindPlugins() 0 4 1
A getCreateGlossaryExpanderPlugins() 0 4 1
A getStoreRelationFormTypePlugin() 0 3 1
A getCmsPageTableExpanderPlugins() 0 4 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\CmsGui;
11
12
use Spryker\Zed\CmsGui\CmsGuiDependencyProvider as SprykerCmsGuiDependencyProvider;
13
use Spryker\Zed\CmsGui\Communication\Plugin\CmsPageTableExpanderPlugin;
14
use Spryker\Zed\CmsGui\Communication\Plugin\CreateGlossaryExpanderPlugin;
15
use Spryker\Zed\ContentGui\Communication\Plugin\CmsGui\HtmlToTwigExpressionsCmsGlossaryBeforeSavePlugin;
16
use Spryker\Zed\ContentGui\Communication\Plugin\CmsGui\TwigExpressionsToHtmlCmsGlossaryAfterFindPlugin;
17
use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface;
18
use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin;
19
20
class CmsGuiDependencyProvider extends SprykerCmsGuiDependencyProvider
21
{
22
    /**
23
     * @return array<\Spryker\Zed\CmsGui\Dependency\Plugin\CmsPageTableExpanderPluginInterface>
24
     */
25
    protected function getCmsPageTableExpanderPlugins(): array
26
    {
27
        return [
28
            new CmsPageTableExpanderPlugin(),
29
        ];
30
    }
31
32
    /**
33
     * @return array<\Spryker\Zed\CmsGui\Dependency\Plugin\CreateGlossaryExpanderPluginInterface>
34
     */
35
    protected function getCreateGlossaryExpanderPlugins(): array
36
    {
37
        return [
38
            new CreateGlossaryExpanderPlugin(),
39
        ];
40
    }
41
42
    /**
43
     * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface
44
     */
45
    protected function getStoreRelationFormTypePlugin(): FormTypeInterface
46
    {
47
        return new StoreRelationToggleFormTypePlugin();
48
    }
49
50
    /**
51
     * @return array<\Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryAfterFindPluginInterface>
52
     */
53
    protected function getCmsGlossaryAfterFindPlugins(): array
54
    {
55
        return [
56
            new TwigExpressionsToHtmlCmsGlossaryAfterFindPlugin(),
57
        ];
58
    }
59
60
    /**
61
     * @return array<\Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryBeforeSavePluginInterface>
62
     */
63
    protected function getCmsGlossaryBeforeSavePlugins(): array
64
    {
65
        return [
66
            new HtmlToTwigExpressionsCmsGlossaryBeforeSavePlugin(),
67
        ];
68
    }
69
}
70