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

Breadcrumb

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

function Compiler::reset

Return value

$this

1 call to Compiler::reset()
Compiler::compile in vendor/twig/twig/src/Compiler.php

File

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

Class

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

Namespace

Twig

Code

public function reset(int $indentation = 0) {
    $this->lastLine = null;
    $this->source = '';
    $this->debugInfo = [];
    $this->sourceOffset = 0;
    // source code starts at 1 (as we then increment it when we encounter new lines)
    $this->sourceLine = 1;
    $this->indentation = $indentation;
    $this->varNameSalt = 0;
    return $this;
}
RSS feed
Powered by Drupal