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