public function Twig_Extension_StringLoader::getFunctions in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Extension/StringLoader.php \Twig_Extension_StringLoader::getFunctions()
Returns a list of functions to add to the existing list.
Return value
array An array of functions
Overrides Twig_Extension::getFunctions
File
- vendor/
Twig/ Extension/ StringLoader.php, line 16
Class
Code
public function getFunctions() {
return array(
new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array(
'needs_environment' => true,
)),
);
}