protected function Twig_NodeVisitor_Escaper::needEscaping in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/NodeVisitor/Escaper.php \Twig_NodeVisitor_Escaper::needEscaping()
2 calls to Twig_NodeVisitor_Escaper::needEscaping()
- Twig_NodeVisitor_Escaper::doEnterNode in vendor/
Twig/ NodeVisitor/ Escaper.php - Called before child nodes are visited.
- Twig_NodeVisitor_Escaper::doLeaveNode in vendor/
Twig/ NodeVisitor/ Escaper.php - Called after child nodes are visited.
File
- vendor/
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;
}