Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Compiler.php

function Compiler::write

Writes a string to the compiled code by adding indentation.

Return value

$this

1 call to Compiler::write()
Compiler::addDebugInfo in vendor/twig/twig/src/Compiler.php

File

vendor/twig/twig/src/Compiler.php, line 129

Class

Compiler
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig

Code

public function write(...$strings) {
    foreach ($strings as $string) {
        $this->checkForEcho($string);
        $this->source .= str_repeat(' ', $this->indentation * 4) . $string;
    }
    return $this;
}
RSS feed
Powered by Drupal