1 | <?php |
||
24 | class IconTwigExtension extends AbstractIconTwigExtension implements IconRendererInterface { |
||
25 | |||
26 | /** |
||
27 | * Service name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const SERVICE_NAME = "wbw.adminbsb.twig.extension.ui.icon"; |
||
32 | |||
33 | /** |
||
34 | * Displays an AdminBSB basic icon. |
||
35 | * |
||
36 | * @param array $args The arguments. |
||
37 | * @return string Returns the AdminBSB basic icon. |
||
38 | */ |
||
39 | public function adminBSBIconBasicFunction(array $args = []): string { |
||
42 | |||
43 | /** |
||
44 | * Displays an AdminBSB material design icon. |
||
45 | * |
||
46 | * @param array $args The arguments. |
||
47 | * @return string Returns the AdminBSB material design icon. |
||
48 | */ |
||
49 | public function adminBSBIconMaterialDesignFunction(array $args = []): string { |
||
52 | |||
53 | /** |
||
54 | * Get the Twig functions. |
||
55 | * |
||
56 | * @return TwigFunction[] Returns the Twig functions. |
||
57 | */ |
||
58 | public function getFunctions(): array { |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function renderIcon(?string $name, ?string $style): string { |
||
71 | } |
||
72 |