You are here

public function Twig_Error::setTemplateFile in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Error.php \Twig_Error::setTemplateFile()

Sets the filename where the error occurred.

Parameters

string $filename The filename:

File

vendor/Twig/Error.php, line 104

Class

Twig_Error
Twig base exception.

Code

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