public function Twig_Compiler::write in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/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/ twig/ lib/ Twig/ Compiler.php - Adds debugging information.
File
- vendor/
twig/ twig/ lib/ 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;
}