27 $this->options = array_merge(array(
28 'needs_environment' =>
false,
29 'needs_context' =>
false,
31 'preserves_safety' => null,
48 return $this->options[
'needs_environment'];
53 return $this->options[
'needs_context'];
58 if (isset($this->options[
'is_safe'])) {
59 return $this->options[
'is_safe'];
62 if (isset($this->options[
'is_safe_callback'])) {
63 return call_user_func($this->options[
'is_safe_callback'], $filterArgs);
69 return $this->options[
'preserves_safety'];
74 return $this->options[
'pre_escape'];
79 return $this->options[
'callable'];
__construct(array $options=array())
Represents a template filter.
Represents a node in the AST.
getSafe(Twig_Node $filterArgs)
Represents a template filter.
Represents a callable template filter.