public function Twig_LoaderInterface::getSource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/LoaderInterface.php \Twig_LoaderInterface::getSource()
Gets the source code of a template, given its name.
Parameters
string $name The name of the template to load:
Return value
string The template source code
Throws
Twig_Error_Loader When $name is not found
4 methods override Twig_LoaderInterface::getSource()
- Twig_Loader_Array::getSource in vendor/
twig/ twig/ lib/ Twig/ Loader/ Array.php - Gets the source code of a template, given its name.
- Twig_Loader_Chain::getSource in vendor/
twig/ twig/ lib/ Twig/ Loader/ Chain.php - Gets the source code of a template, given its name.
- Twig_Loader_Filesystem::getSource in vendor/
twig/ twig/ lib/ Twig/ Loader/ Filesystem.php - Gets the source code of a template, given its name.
- Twig_Loader_String::getSource in vendor/
twig/ twig/ lib/ Twig/ Loader/ String.php - Gets the source code of a template, given its name.
File
- vendor/
twig/ twig/ lib/ Twig/ LoaderInterface.php, line 28
Class
- Twig_LoaderInterface
- Interface all loaders must implement.
Code
public function getSource($name);