28 $this->options = array_merge(array(
29 'needs_environment' =>
false,
30 'needs_context' =>
false,
32 'is_safe_callback' => null,
34 'preserves_safety' => null,
35 'node_class' =>
'Twig_Node_Expression_Filter',
51 return $this->options[
'node_class'];
66 return $this->options[
'needs_environment'];
71 return $this->options[
'needs_context'];
76 if (null !== $this->options[
'is_safe']) {
77 return $this->options[
'is_safe'];
80 if (null !== $this->options[
'is_safe_callback']) {
81 return call_user_func($this->options[
'is_safe_callback'], $filterArgs);
87 return $this->options[
'preserves_safety'];
92 return $this->options[
'pre_escape'];
getSafe(Twig_Node $filterArgs)
Represents a node in the AST.
__construct($name, $callable, array $options=array())
Represents a template filter.