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 | * Constructor. |
||
37 | * |
||
38 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
39 | */ |
||
40 | public function __construct(Twig_Environment $twigEnvironment) { |
||
43 | |||
44 | /** |
||
45 | * Displays a script. |
||
46 | * |
||
47 | * @param string $content The content. |
||
48 | * @return string Returns a script. |
||
49 | */ |
||
50 | public function coreScriptFilter($content) { |
||
63 | |||
64 | /** |
||
65 | * Get the Twig filters. |
||
66 | * |
||
67 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
68 | */ |
||
69 | public function getFilters() { |
||
74 | |||
75 | /** |
||
76 | * Render an icon. |
||
77 | * |
||
78 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
79 | * @param string $name The name. |
||
80 | * @param string $style The style. |
||
81 | * @return string Returns the rendered icon. |
||
82 | */ |
||
83 | public static function renderIcon(Twig_Environment $twigEnvironment, $name, $style = null) { |
||
116 | |||
117 | } |
||
118 |