class StringLoader implements LoaderInterface (View source)

Loads string templates, also known as inline templates.

This loader is intended to be used in a Twig loader chain and only loads string templates that begin with the following comment:

Methods

exists($name)

{@inheritdoc}

getCacheKey($name)

{@inheritdoc}

isFresh($name, $time)

{@inheritdoc}

getSourceContext($name)

{@inheritdoc}

Details

exists($name)

{@inheritdoc}

Parameters

$name

getCacheKey($name)

{@inheritdoc}

Parameters

$name

isFresh($name, $time)

{@inheritdoc}

Parameters

$name
$time

getSourceContext($name)

{@inheritdoc}

Parameters

$name