@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Tkotosz\CatalogRouter\Model\Service\StoreIdResolver; |
| 8 | 8 | use Magento\Catalog\Model\Product; |
| 9 | 9 | use Magento\Catalog\Model\Product\Url as DefaultProductUrlModel; |
| 10 | -use Magento\Store\Model\StoreManagerInterface; |
|
| 11 | 10 | |
| 12 | 11 | class ProductUrl |
| 13 | 12 | { |
@@ -100,6 +100,9 @@ discard block |
||
| 100 | 100 | return $resolvedEntities; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @return \Magento\Framework\Phrase |
|
| 105 | + */ |
|
| 103 | 106 | protected function getErrorMessage(UrlPath $urlPath, Store $store, array $entities) |
| 104 | 107 | { |
| 105 | 108 | $messages = []; |
@@ -127,6 +130,9 @@ discard block |
||
| 127 | 130 | return $this->urlProvider->getUrl($editUrlPath, [$idParam => $entity->getId()]); |
| 128 | 131 | } |
| 129 | 132 | |
| 133 | + /** |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 130 | 136 | abstract protected function getCurrentEntityType(); |
| 131 | 137 | |
| 132 | 138 | abstract protected function getEntity(Observer $observer); |