You are here

public function Twig_Compiler::write in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.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 122

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