Lines Matching refs:TwigFilter

132     $filter = new \Twig\TwigFilter('rot13', function ($string) {
137 $filter = new \Twig\TwigFilter('rot13', 'str_rot13');
140 $filter = new \Twig\TwigFilter('rot13', ['SomeClass', 'rot13Filter']);
141 $filter = new \Twig\TwigFilter('rot13', 'SomeClass::rot13Filter');
144 $filter = new \Twig\TwigFilter('rot13', [$this, 'rot13Filter']);
146 $filter = new \Twig\TwigFilter('rot13', ['SomeClass', 'rot13Filter']);
148 The first argument passed to the ``\Twig\TwigFilter`` constructor is the name
181 The ``\Twig\TwigFilter`` class takes an array of options as its last
184 $filter = new \Twig\TwigFilter('rot13', 'str_rot13', $options);
193 $filter = new \Twig\TwigFilter('rot13', function (Twig_Environment $env, $string) {
208 $filter = new \Twig\TwigFilter('rot13', function ($context, $string) {
212 $filter = new \Twig\TwigFilter('rot13', function (Twig_Environment $env, $context, $string) {
224 $filter = new \Twig\TwigFilter('nl2br', 'nl2br', ['is_safe' => ['html']]);
231 …$filter = new \Twig\TwigFilter('somefilter', 'somefilter', ['pre_escape' => 'html', 'is_safe' => […
243 $filter = new \Twig\TwigFilter('thumbnail', function ($file, array $options = []) {
257 $filter = new \Twig\TwigFilter('*_path', function ($name, $arguments) {
268 $filter = new \Twig\TwigFilter('*_path_*', function ($name, $suffix, $arguments) {
287 $filter = new \Twig\TwigFilter('obsolete', function () {
620 * @return \Twig\TwigFilter[]
741 new \Twig\TwigFilter('rot13', 'str_rot13'),
922 new \Twig\TwigFilter('date', [$this, 'dateFilter']),
941 $twig->addFilter(new \Twig\TwigFilter('date', function ($timestamp, $format = 'F j, Y H:i') {