| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function resolve(string $adminName, string $actionName): string |
||
| 22 | { |
||
| 23 | $routeName = str_replace( |
||
| 24 | '{admin}', |
||
| 25 | strtolower($adminName), |
||
| 26 | $this->configuration->get('routing_name_pattern') |
||
| 27 | ); |
||
| 28 | |||
| 29 | $routeName = str_replace( |
||
| 30 | '{action}', |
||
| 31 | $actionName, |
||
| 32 | $routeName |
||
| 33 | ); |
||
| 34 | |||
| 35 | return $routeName; |
||
| 36 | } |
||
| 59 |