1 | <?php |
||
26 | class RendererTwigExtension extends AbstractTwigExtension { |
||
27 | |||
28 | /** |
||
29 | * Service name. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const SERVICE_NAME = "webeweb.core.twig.extension.renderer"; |
||
34 | |||
35 | /** |
||
36 | * Displays a script. |
||
37 | * |
||
38 | * @param string $content The content. |
||
39 | * @return string Returns a script. |
||
40 | */ |
||
41 | public function coreScriptFilter($content) { |
||
51 | |||
52 | /** |
||
53 | * Get the Twig filters. |
||
54 | * |
||
55 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
56 | */ |
||
57 | public function getFilters() { |
||
62 | |||
63 | /** |
||
64 | * Render an icon. |
||
65 | * |
||
66 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
67 | * @param string $name The name. |
||
68 | * @param string|null $style The style. |
||
69 | * @return string Returns the rendered icon. |
||
70 | */ |
||
71 | public static function renderIcon(Twig_Environment $twigEnvironment, $name, $style = null) { |
||
97 | } |
||
98 |