You are here

public function Twig_ExistsLoaderInterface::exists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php \Twig_ExistsLoaderInterface::exists()

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

Parameters

string $name The name of the template to check if we can load:

Return value

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

4 methods override Twig_ExistsLoaderInterface::exists()
Twig_Loader_Array::exists in vendor/twig/twig/lib/Twig/Loader/Array.php
Check if we have the source code of a template, given its name.
Twig_Loader_Chain::exists in vendor/twig/twig/lib/Twig/Loader/Chain.php
Check if we have the source code of a template, given its name.
Twig_Loader_Filesystem::exists in vendor/twig/twig/lib/Twig/Loader/Filesystem.php
Check if we have the source code of a template, given its name.
Twig_Loader_String::exists in vendor/twig/twig/lib/Twig/Loader/String.php
Check if we have the source code of a template, given its name.

File

vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php, line 28

Class

Twig_ExistsLoaderInterface
Adds an exists() method for loaders.

Code

public function exists($name);