public function Twig_Filter::getSafe in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Filter.php \Twig_Filter::getSafe()
Overrides Twig_FilterInterface::getSafe
File
- vendor/
twig/ twig/ lib/ Twig/ Filter.php, line 59
Class
- Twig_Filter
- Represents a template filter.
Code
public function getSafe(Twig_Node $filterArgs) {
if (isset($this->options['is_safe'])) {
return $this->options['is_safe'];
}
if (isset($this->options['is_safe_callback'])) {
return call_user_func($this->options['is_safe_callback'], $filterArgs);
}
}