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