| 1 | <?php |
||
| 23 | class RendererTwigExtension extends AbstractTwigExtension { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Service name. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | const SERVICE_NAME = "webeweb.core.twig.extension.renderer"; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | * |
||
| 35 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
| 36 | */ |
||
| 37 | public function __construct(Twig_Environment $twigEnvironment) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Displays a script. |
||
| 43 | * |
||
| 44 | * @param string $content The content. |
||
| 45 | * @return string Returns a script. |
||
| 46 | */ |
||
| 47 | public function coreScriptFilter($content) { |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get the Twig filters. |
||
| 63 | * |
||
| 64 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
| 65 | */ |
||
| 66 | public function getFilters() { |
||
| 71 | |||
| 72 | } |
||
| 73 |