Home
last modified time | relevance | path

Searched refs:Twig_Filter_Function (Results 1 – 4 of 4) sorted by relevance

/plugin/findologicxmlexport/vendor/twig/twig/lib/Twig/Filter/
DFunction.php23 class Twig_Filter_Function extends Twig_Filter class
/plugin/findologicxmlexport/vendor/twig/twig/doc/
Dadvanced_legacy.rst182 $twig->addFilter('rot13', new Twig_Filter_Function('str_rot13'));
185 Here, we use ``Twig_Filter_Function`` as the filter is a PHP function. The
186 first argument passed to the ``Twig_Filter_Function`` constructor is the name
210 $twig->addFilter('rot13', new Twig_Filter_Function('project_compute_rot13'));
213 class. The ``Twig_Filter_Function`` class can also be used to register such
216 $twig->addFilter('rot13', new Twig_Filter_Function('SomeClass::rot13Filter'));
230 $filter = new Twig_Filter_Function('str_rot13', ['needs_environment' => true]);
251 $filter = new Twig_Filter_Function('nl2br', ['is_safe' => ['html']]);
258 … $filter = new Twig_Filter_Function('somefilter', ['pre_escape' => 'html', 'is_safe' => ['html']]);
269 $twig->addFilter('*_path_*', new Twig_Filter_Function('twig_path'));
[all …]
Ddeprecated.rst70 * ``Twig_Filter_Function``
/plugin/findologicxmlexport/vendor/twig/twig/
DCHANGELOG969 upgrade, replace "array" with "new Twig_Filter_Function", and replace the
977 'even' => new Twig_Filter_Function('twig_is_even_filter'),
978 'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true)),