|
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
|
|
|
|