| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function getLink(ResourceInterface $resource, RouterInterface $router, $extraParams = []): string |
||
| 15 | { |
||
| 16 | $params = [ |
||
| 17 | 'id' => $resource->getResourceIdentifier(), |
||
| 18 | 'name' => 'lp/lp_controller.php', |
||
| 19 | 'action' => 'view_category', |
||
| 20 | ]; |
||
| 21 | if (!empty($extraParams)) { |
||
| 22 | $params = array_merge($params, $extraParams); |
||
| 23 | } |
||
| 24 | |||
| 25 | return $router->generate('legacy_main', $params); |
||
| 26 | } |
||
| 28 |