You are here

public function Twig_Loader_Array::exists in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Loader/Array.php \Twig_Loader_Array::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

Overrides Twig_ExistsLoaderInterface::exists

File

vendor/Twig/Loader/Array.php, line 65

Class

Twig_Loader_Array
Loads a template from an array.

Code

public function exists($name) {
  return isset($this->templates[(string) $name]);
}