You are here

public function Twig_Loader_Array::setTemplate in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Loader/Array.php \Twig_Loader_Array::setTemplate()

Adds or overrides a template.

Parameters

string $name The template name:

string $template The template source:

File

vendor/Twig/Loader/Array.php, line 46

Class

Twig_Loader_Array
Loads a template from an array.

Code

public function setTemplate($name, $template) {
  $this->templates[(string) $name] = $template;
}