class Twig_Filter_Function in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Filter/Function.php \Twig_Filter_Function
Represents a function template filter.
Use Twig_SimpleFilter instead.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Twig_Filter implements Twig_FilterCallableInterface, Twig_FilterInterface
- class \Twig_Filter_Function
Expanded class hierarchy of Twig_Filter_Function
Deprecated
since 1.12 (to be removed in 2.0)
File
- vendor/
twig/ twig/ lib/ Twig/ Filter/ Function.php, line 23
View source
class Twig_Filter_Function extends Twig_Filter {
protected $function;
public function __construct($function, array $options = array()) {
$options['callable'] = $function;
parent::__construct($options);
$this->function = $function;
}
public function compile() {
return $this->function;
}
}