$name
$name :
Represents a template filter.
__construct(string $name, callable|null $callable = null, array $options = array())
Creates a template filter.
string | $name | Name of this filter |
callable|null | $callable | A callable implementing the filter. If null, you need to overwrite the "node_class" option to customize compilation. |
array | $options | Options array |
getSafe(\Twig_Node $filterArgs)
\Twig_Node | $filterArgs |
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* For Twig 1.x compatibility.
*/
class_exists('Twig_Filter');
if (false) {
final class Twig_SimpleFilter extends Twig_Filter
{
}
}