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

Adds an exists() method for loaders. More...

+ Inheritance diagram for Twig_ExistsLoaderInterface:
+ Collaboration diagram for Twig_ExistsLoaderInterface:

Public Member Functions

 exists ($name)
 Check if we have the source code of a template, given its name. More...
 

Detailed Description

Adds an exists() method for loaders.

Author
Florin Patan flori.nosp@m.npat.nosp@m.an@gm.nosp@m.ail..nosp@m.com
Deprecated:
since 1.12 (to be removed in 3.0)

Definition at line 19 of file ExistsLoaderInterface.php.

Member Function Documentation

◆ exists()

Twig_ExistsLoaderInterface::exists (   $name)

Check if we have the source code of a template, given its name.

Parameters
string$nameThe name of the template to check if we can load
Returns
bool If the template source code is handled by this loader or not

Implemented in Twig_Loader_Filesystem, Twig_Loader_Chain, Twig_Loader_Array, and Twig_Loader_String.

Referenced by Twig_Loader_Chain\getCacheKey(), Twig_Loader_Chain\getSource(), Twig_Loader_Chain\getSourceContext(), and Twig_Loader_Chain\isFresh().

+ Here is the caller graph for this function:

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