You are here

protected function Twig_NodeVisitor_Escaper::needEscaping in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/NodeVisitor/Escaper.php \Twig_NodeVisitor_Escaper::needEscaping()
2 calls to Twig_NodeVisitor_Escaper::needEscaping()
Twig_NodeVisitor_Escaper::enterNode in vendor/Twig/NodeVisitor/Escaper.php
Called before child nodes are visited.
Twig_NodeVisitor_Escaper::leaveNode in vendor/Twig/NodeVisitor/Escaper.php
Called after child nodes are visited.

File

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