You are here

public function Twig_Loader_Array::setTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/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/twig/lib/Twig/Loader/Array.php, line 44

Class

Twig_Loader_Array
Loads a template from an array.

Code

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