SourceContextLoaderInterface

Extends

Adds a getSourceContext() method for loaders.

author

Fabien Potencier fabien@symfony.com

deprecated

since 1.27 (to be removed in 3.0)

package

Default

Methods

Returns the source context for a given template logical name.

getSourceContext(string $name): \Twig\Source
Throws
\Twig\Error\LoaderError

When $name is not found

Arguments

$name

string

The template logical name

Response

\Twig\Source