You are here

public function Twig_Error::setTemplateFile in Zircon Profile 8

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

Sets the filename where the error occurred.

Parameters

string $filename The filename:

File

vendor/twig/twig/lib/Twig/Error.php, line 104

Class

Twig_Error
Twig base exception.

Code

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