public function Twig_Compiler::write in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/Compiler.php \Twig_Compiler::write()
Writes a string to the compiled code by adding indentation.
Return value
Twig_Compiler The current compiler instance
1 call to Twig_Compiler::write()
- Twig_Compiler::addDebugInfo in vendor/
Twig/ Compiler.php - Adds debugging information.
File
- vendor/
Twig/ Compiler.php, line 121
Class
- Twig_Compiler
- Compiles a node to PHP code.
Code
public function write() {
$strings = func_get_args();
foreach ($strings as $string) {
$this
->addIndentation();
$this->source .= $string;
}
return $this;
}