public function Twig_Loader_Array::__construct in Translation template extractor 7.3
Same name and namespace in other branches
- 6.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):
File
- vendor/
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;
}