public function Twig_Function::getSafe in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Function.php \Twig_Function::getSafe()
Overrides Twig_FunctionInterface::getSafe
File
- vendor/
Twig/ Function.php, line 54
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();
}