public function 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 drupal/core/vendor/twig/twig/lib/Twig/Compiler.php
Adds debugging information.

File

drupal/core/vendor/twig/twig/lib/Twig/Compiler.php, line 111

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