Conditions | 2 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function aroundGetUrl(Category $category, Closure $proceed) |
||
40 | { |
||
41 | try { |
||
42 | $storeId = $this->storeIdResolver->resolve($category); |
||
43 | $url = $this->catalogUrlProvider->getCategoryUrl($category->getId(), $storeId); |
||
44 | } catch (EntityDataNotFoundException $e) { |
||
45 | $url = $proceed(); |
||
46 | } |
||
47 | |||
48 | return $url; |
||
49 | } |
||
50 | } |
||
51 |