1 | <?php |
||
23 | class JavascriptTwigExtension extends AbstractTwigExtension { |
||
24 | |||
25 | /** |
||
26 | * Service name. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const SERVICE_NAME = "wbw.core.twig.extension.javascript"; |
||
31 | |||
32 | /** |
||
33 | * Get the Twig filters. |
||
34 | * |
||
35 | * @return TwigFilter[] Returns the Twig filters. |
||
36 | */ |
||
37 | public function getFilters() { |
||
42 | |||
43 | /** |
||
44 | * Get the Twig functions. |
||
45 | * |
||
46 | * @return TwigFunction[] Returns the Twig functions. |
||
47 | */ |
||
48 | public function getFunctions() { |
||
53 | |||
54 | /** |
||
55 | * Displays a Google tag manager. |
||
56 | * |
||
57 | * @param string $id The id. |
||
58 | * @return string Returns the Google tag manager. |
||
59 | */ |
||
60 | public function jsGtag($id) { |
||
70 | } |