You are here

public function Twig_Loader_String::exists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Loader/String.php \Twig_Loader_String::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/twig/lib/Twig/Loader/String.php, line 43

Class

Twig_Loader_String
Loads a template from a string.

Code

public function exists($name) {
  return true;
}