public function Twig_Function::getSafe in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Function.php \Twig_Function::getSafe()
Overrides Twig_FunctionInterface::getSafe
File
- vendor/
twig/ twig/ lib/ Twig/ Function.php, line 57
Class
- Twig_Function
- Represents a template function.
Code
public function getSafe(Twig_Node $functionArgs) {
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'], $functionArgs);
}
return array();
}