You are here

public function Twig_SimpleFilter::getSafe in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/SimpleFilter.php \Twig_SimpleFilter::getSafe()

File

vendor/Twig/SimpleFilter.php, line 74

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);
  }
}