You are here

protected function Twig_NodeVisitor_Escaper::needEscaping in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php \Twig_NodeVisitor_Escaper::needEscaping()
2 calls to Twig_NodeVisitor_Escaper::needEscaping()
Twig_NodeVisitor_Escaper::doEnterNode in vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php
Called before child nodes are visited.
Twig_NodeVisitor_Escaper::doLeaveNode in vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php
Called after child nodes are visited.

File

vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php, line 132

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