Interface Twig_ExistsLoaderInterface

Implemented byTwig_Loader_Array, Twig_Loader_Chain, Twig_Loader_Filesystem, Twig_Loader_String
Deprecated since version since 1.12 (to be removed in 3.0)

Adds an exists() method for loaders.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
exists() Check if we have the source code of a template, given its name. Twig_ExistsLoaderInterface

Method Details

exists() public abstract method

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

public abstract bool exists ( $name )
$name string

The name of the template to check if we can load

return bool

If the template source code is handled by this loader or not