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}

Parameters

$name

getSource($name)

{@inheritdoc}

Parameters

$name

getCacheKey($name)

{@inheritdoc}

Parameters

$name

isFresh($name, $time)

{@inheritdoc}

Parameters

$name
$time

getSourceContext($name)

{@inheritdoc}

Parameters

$name