ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_SourceContextLoaderInterface Interface Reference

Adds a getSourceContext() method for loaders. More...

+ Inheritance diagram for Twig_SourceContextLoaderInterface:
+ Collaboration diagram for Twig_SourceContextLoaderInterface:

Public Member Functions

 getSourceContext ($name)
 Returns the source context for a given template logical name. More...
 

Detailed Description

Adds a getSourceContext() method for loaders.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Deprecated:
since 1.27 (to be removed in 3.0)

Definition at line 19 of file SourceContextLoaderInterface.php.

Member Function Documentation

◆ getSourceContext()

Twig_SourceContextLoaderInterface::getSourceContext (   $name)

Returns the source context for a given template logical name.

Parameters
string$nameThe template logical name
Returns
Twig_Source
Exceptions
Twig_Error_LoaderWhen $name is not found

Implemented in Twig_Loader_Filesystem, Twig_Loader_Array, Twig_Loader_Chain, and Twig_Loader_String.


The documentation for this interface was generated from the following file: