StringLoader
class StringLoader implements Twig_LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface (View source)
Loads string templates, also known as inline templates.
This loader is intended to be used in a Twig loader chain and whitelists string templates that begin with the following comment:
Methods
exists($name)
{@inheritdoc}
getSource($name)
{@inheritdoc}
getCacheKey($name)
{@inheritdoc}
isFresh($name, $time)
{@inheritdoc}
getSourceContext($name)
{@inheritdoc}
Details
exists($name)
{@inheritdoc}
getSource($name)
{@inheritdoc}
getCacheKey($name)
{@inheritdoc}
isFresh($name, $time)
{@inheritdoc}
getSourceContext($name)
{@inheritdoc}