public function Twig_Error::setTemplateLine

Sets the template line where the error occurred.

Parameters

integer $lineno The template line:

File

drupal/core/vendor/twig/twig/lib/Twig/Error.php, line 126

Class

Twig_Error
Twig base exception.

Code

public function setTemplateLine($lineno) {
  $this->lineno = $lineno;
  $this
    ->updateRepr();
}