1 | <?php |
||
16 | abstract class PathValidatorObserver implements ObserverInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var UrlPathUsedCheckerContainer |
||
20 | */ |
||
21 | protected $urlPathUsedChecker; |
||
22 | |||
23 | /** |
||
24 | * @var StoreManagerInterface |
||
25 | */ |
||
26 | protected $storeManager; |
||
27 | |||
28 | /** |
||
29 | * @var CatalogUrlPathProviderInterface |
||
30 | */ |
||
31 | protected $urlPathProvider; |
||
32 | |||
33 | /** |
||
34 | * @var UrlInterface |
||
35 | */ |
||
36 | protected $urlProvider; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $entityEditUrls; |
||
42 | |||
43 | /** |
||
44 | * @param UrlPathUsedCheckerContainer $urlPathUsedChecker |
||
45 | * @param StoreManagerInterface $storeManager |
||
46 | * @param CatalogUrlPathProviderInterface $urlPathProvider |
||
47 | * @param UrlInterface $urlProvider |
||
48 | * @param array $entityEditUrls |
||
49 | */ |
||
50 | public function __construct( |
||
63 | |||
64 | /** |
||
65 | * @param Observer $observer |
||
66 | * @return void |
||
67 | */ |
||
68 | public function execute(Observer $observer) |
||
81 | |||
82 | protected function getOtherEntitiesWithPath(UrlPath $urlPath, int $storeId, AbstractModel $currentEntity) |
||
98 | |||
99 | protected function getErrorMessage(UrlPath $urlPath, int $storeId, array $entities) |
||
123 | |||
124 | abstract protected function getCurrentEntityType(); |
||
125 | |||
126 | abstract protected function getEntity(Observer $observer); |
||
127 | |||
128 | abstract protected function getEntityStoreIds(AbstractModel $entity); |
||
129 | |||
130 | abstract protected function getEntityUrlPath(AbstractModel $entity, int $storeId); |
||
131 | } |
||
132 |