You are here

public function Twig_SimpleFilter::getSafe in Zircon Profile 8.0

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

File

vendor/twig/twig/lib/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);
  }
}