| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function getFunctions(): array |
||
| 21 | { |
||
| 22 | return [ |
||
| 23 | new TwigFunction('menu', [$this->menu, 'getMenu'], [ |
||
| 24 | 'is_safe' => ['html'], |
||
| 25 | 'needs_context' => true, |
||
| 26 | 'needs_environment' => true, |
||
| 27 | ]), |
||
| 28 | new TwigFunction('menu_result', [$this->menu, 'getMenuResult'], [ |
||
| 29 | 'needs_context' => true, |
||
| 30 | ]), |
||
| 31 | new TwigFunction('breadcrumbs', [$this->menu, 'getBreadcrumbs'], [ |
||
| 32 | 'is_safe' => ['html'], |
||
| 33 | 'needs_context' => true, |
||
| 34 | 'needs_environment' => true, |
||
| 35 | ]), |
||
| 36 | new TwigFunction('breadcrumbs_result', [$this->menu, 'getBreadcrumbsResult'], [ |
||
| 37 | 'is_safe' => ['html'], |
||
| 38 | 'needs_context' => true, |
||
| 39 | ]), |
||
| 43 |