public function Twig_Error::setTemplateFile

Sets the filename where the error occurred.

Parameters

string $filename The filename:

File

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

Class

Twig_Error
Twig base exception.

Code

public function setTemplateFile($filename) {
  $this->filename = $filename;
  $this
    ->updateRepr();
}