public function Twig_Function_Function::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Function/Function.php \Twig_Function_Function::__construct()
Overrides Twig_Function::__construct
File
- vendor/
twig/ twig/ lib/ Twig/ Function/ Function.php, line 28
Class
- Twig_Function_Function
- Represents a function template function.
Code
public function __construct($function, array $options = array()) {
$options['callable'] = $function;
parent::__construct($options);
$this->function = $function;
}