20 new Twig_SimpleFunction(
'template_from_string',
'twig_template_from_string', array(
'needs_environment' =>
true)),
26 return 'string_loader';
47 class_alias(
'Twig_Extension_StringLoader',
'Twig\Extension\StringLoaderExtension',
false);
Represents a template function.
getName()
Returns the name of the extension.
twig_template_from_string(Twig_Environment $env, $template)
Loads a template from a string.
getFunctions()
Returns a list of functions to add to the existing list.
Stores the Twig configuration.
createTemplate($template)
Creates a template from source.