27 $this->options = array_merge(array(
28 'needs_environment' =>
false,
29 'needs_context' =>
false,
46 return $this->options[
'needs_environment'];
51 return $this->options[
'needs_context'];
56 if (isset($this->options[
'is_safe'])) {
57 return $this->options[
'is_safe'];
60 if (isset($this->options[
'is_safe_callback'])) {
61 return call_user_func($this->options[
'is_safe_callback'], $functionArgs);
69 return $this->options[
'callable'];
Represents a template function.
Represents a template function.
Represents a node in the AST.
getSafe(Twig_Node $functionArgs)
__construct(array $options=array())
Represents a callable template function.