1 | <?php |
||
25 | class MeteoconsTwigExtension extends AbstractMeteoconsTwigExtension implements IconRendererInterface { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.core.twig.extension.plugin.meteocons"; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param Twig_Environment $twigEnvironment The wig environment. |
||
38 | */ |
||
39 | public function __construct(Twig_Environment $twigEnvironment) { |
||
42 | |||
43 | /** |
||
44 | * Get the Twig functions. |
||
45 | * |
||
46 | * @return array Returns the Twig functions. |
||
47 | */ |
||
48 | public function getFunctions() { |
||
53 | |||
54 | /** |
||
55 | * Displays a Meteocons icon. |
||
56 | * |
||
57 | * @param array $args The arguments. |
||
58 | * @return string Returns a Meteocons icon. |
||
59 | */ |
||
60 | public function meteoconsIconFunction(array $args = []) { |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function renderIcon($name, $style) { |
||
70 | |||
71 | } |
||
72 |