20 new Twig_SimpleFunction(
'template_from_string',
'twig_template_from_string', array(
'needs_environment' =>
true)),
26 return 'string_loader';
47class_alias(
'Twig_Extension_StringLoader',
'Twig\Extension\StringLoaderExtension',
false);
twig_template_from_string(Twig_Environment $env, $template)
Loads a template from a string.
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
getFunctions()
Returns a list of functions to add to the existing list.
Represents a template function.