public function Twig_SimpleFunction::__construct in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/SimpleFunction.php \Twig_SimpleFunction::__construct()
File
- vendor/
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_safe' => null,
'is_safe_callback' => null,
'node_class' => 'Twig_Node_Expression_Function',
), $options);
}