public function Twig_Loader_Array::__construct in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/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):
See also
Twig_Loader
File
- vendor/
Twig/ Loader/ Array.php, line 35
Class
- Twig_Loader_Array
- Loads a template from an array.
Code
public function __construct(array $templates) {
$this->templates = $templates;
}