protected function Twig_NodeVisitor_Escaper::needEscaping

2 calls to Twig_NodeVisitor_Escaper::needEscaping()
Twig_NodeVisitor_Escaper::enterNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php
Called before child nodes are visited.
Twig_NodeVisitor_Escaper::leaveNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php
Called after child nodes are visited.

File

drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php, line 142

Class

Twig_NodeVisitor_Escaper
Twig_NodeVisitor_Escaper implements output escaping.

Code

protected function needEscaping(Twig_Environment $env) {
  if (count($this->statusStack)) {
    return $this->statusStack[count($this->statusStack) - 1];
  }
  return $this->defaultStrategy ? $this->defaultStrategy : false;
}