| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | class DefaultThemeExtension extends AbstractExtension |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ZikulaHttpKernelInterface |
||
| 25 | */ |
||
| 26 | private $kernel; |
||
| 27 | |||
| 28 | public function __construct(ZikulaHttpKernelInterface $kernel) |
||
| 29 | { |
||
| 30 | $this->kernel = $kernel; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getFunctions() |
||
| 34 | { |
||
| 35 | return [ |
||
| 36 | new TwigFunction('getStyleChoices', [$this, 'getStyleChoices']) |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getStyleChoices(): array |
||
| 47 | } |
||
| 48 | } |
||
| 49 |