You are here

public function Twig_Loader_Array::__construct 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::__construct()

Constructor.

Parameters

array $templates An array of templates (keys are the names, and values are the source code):

File

vendor/twig/twig/lib/Twig/Loader/Array.php, line 33

Class

Twig_Loader_Array
Loads a template from an array.

Code

public function __construct(array $templates) {
  $this->templates = $templates;
}