public function Twig_Compiler::outdent

Outdents the generated code.

Parameters

integer $step The number of indentation to remove:

Return value

Twig_Compiler The current compiler instance

File

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

Class

Twig_Compiler
Compiles a node to PHP code.

Code

public function outdent($step = 1) {

  // can't outdent by more steps than the current indentation level
  if ($this->indentation < $step) {
    throw new LogicException('Unable to call outdent() as the indentation would become negative');
  }
  $this->indentation -= $step;
  return $this;
}