public function Twig_SimpleFilter::getSafe in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/SimpleFilter.php \Twig_SimpleFilter::getSafe()
File
- vendor/
Twig/ SimpleFilter.php, line 77
Class
- Twig_SimpleFilter
- Represents a template filter.
Code
public function getSafe(Twig_Node $filterArgs) {
if (null !== $this->options['is_safe']) {
return $this->options['is_safe'];
}
if (null !== $this->options['is_safe_callback']) {
return call_user_func($this->options['is_safe_callback'], $filterArgs);
}
}