public function Twig_SimpleFunction::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/SimpleFunction.php \Twig_SimpleFunction::__construct()
File
- vendor/
twig/ twig/ lib/ Twig/ SimpleFunction.php, line 24
Class
- Twig_SimpleFunction
- Represents a template function.
Code
public function __construct($name, $callable, array $options = array()) {
$this->name = $name;
$this->callable = $callable;
$this->options = array_merge(array(
'needs_environment' => false,
'needs_context' => false,
'is_variadic' => false,
'is_safe' => null,
'is_safe_callback' => null,
'node_class' => 'Twig_Node_Expression_Function',
'deprecated' => false,
'alternative' => null,
), $options);
}