public function Twig_Loader_Filesystem::getSource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Loader/Filesystem.php \Twig_Loader_Filesystem::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
Overrides Twig_LoaderInterface::getSource
File
- vendor/
twig/ twig/ lib/ Twig/ Loader/ Filesystem.php, line 129
Class
- Twig_Loader_Filesystem
- Loads template from the filesystem.
Code
public function getSource($name) {
return file_get_contents($this
->findTemplate($name));
}