1 | <?php |
||
25 | class RendererTwigExtension extends BaseTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "wbw.adminbsb.twig.extension.renderer"; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param Environment $twigEnvironment The twig environment. |
||
38 | */ |
||
39 | public function __construct(Environment $twigEnvironment) { |
||
42 | |||
43 | /** |
||
44 | * Get the Twig filters. |
||
45 | * |
||
46 | * @return TwigFilter[] Returns the Twig filters. |
||
47 | */ |
||
48 | public function getFilters(): array { |
||
51 | |||
52 | /** |
||
53 | * Render an icon. |
||
54 | * |
||
55 | * @param Environment $twigEnvironment The twig environment. |
||
56 | * @param string $name The icon name. |
||
57 | * @param string $style The icon style. |
||
58 | * @return string Returns a rendered icon. |
||
59 | */ |
||
60 | public static function renderIcon(Environment $twigEnvironment, string $name, string $style = null): string { |
||
86 | } |
||
87 |