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\CategoryGui; |
11
|
|
|
|
12
|
|
|
use Spryker\Zed\CategoryGui\CategoryGuiDependencyProvider as SpykerCategoryGuiDependencyProvider; |
13
|
|
|
use Spryker\Zed\CategoryImageGui\Communication\Plugin\CategoryGui\ImageSetCategoryFormTabExpanderPlugin; |
14
|
|
|
use Spryker\Zed\CategoryImageGui\Communication\Plugin\CategoryGui\ImageSetSubformCategoryFormPlugin; |
15
|
|
|
use Spryker\Zed\CmsBlockCategoryConnector\Communication\Plugin\CategoryGui\CmsBlockCategoryRelationReadPlugin; |
16
|
|
|
use Spryker\Zed\CmsBlockCategoryConnector\Communication\Plugin\CategoryGui\CmsBlockSubformCategoryFormPlugin; |
17
|
|
|
use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface; |
18
|
|
|
use Spryker\Zed\ProductCategory\Communication\Plugin\CategoryGui\ProductCategoryRelationReadPlugin; |
19
|
|
|
use Spryker\Zed\StoreGui\Communication\Plugin\Form\StoreRelationDropdownFormTypePlugin; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @method \Spryker\Zed\CategoryGui\CategoryGuiConfig getConfig() |
23
|
|
|
*/ |
24
|
|
|
class CategoryGuiDependencyProvider extends SpykerCategoryGuiDependencyProvider |
25
|
|
|
{ |
26
|
|
|
protected function getStoreRelationFormTypePlugin(): FormTypeInterface |
27
|
|
|
{ |
28
|
|
|
return new StoreRelationDropdownFormTypePlugin(); |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormTabExpanderPluginInterface> |
33
|
|
|
*/ |
34
|
|
|
protected function getCategoryFormTabExpanderPlugins(): array |
35
|
|
|
{ |
36
|
|
|
return [ |
37
|
|
|
new ImageSetCategoryFormTabExpanderPlugin(), |
38
|
|
|
]; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormPluginInterface> |
43
|
|
|
*/ |
44
|
|
|
protected function getCategoryFormPlugins(): array |
45
|
|
|
{ |
46
|
|
|
return [ |
47
|
|
|
new ImageSetSubformCategoryFormPlugin(), |
48
|
|
|
new CmsBlockSubformCategoryFormPlugin(), |
49
|
|
|
]; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryRelationReadPluginInterface> |
54
|
|
|
*/ |
55
|
|
|
protected function getCategoryRelationReadPlugins(): array |
56
|
|
|
{ |
57
|
|
|
return [ |
58
|
|
|
new ProductCategoryRelationReadPlugin(), |
59
|
|
|
new CmsBlockCategoryRelationReadPlugin(), |
60
|
|
|
]; |
61
|
|
|
} |
62
|
|
|
} |
63
|
|
|
|