| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getLink(ResourceInterface $resource, RouterInterface $router, $extraParams = []): string |
||
| 18 | { |
||
| 19 | $params = ['lp_id' => $resource->getResourceIdentifier(), 'name' => 'lp/lp_controller.php', 'action' => 'view']; |
||
| 20 | if (!empty($extraParams)) { |
||
| 21 | $params = array_merge($params, $extraParams); |
||
| 22 | } |
||
| 23 | |||
| 24 | return $router->generate('legacy_main', $params); |
||
| 25 | } |
||
| 27 |