function twig_source in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Extension/Core.php \twig_source()
Returns a template content without rendering it.
Parameters
string $name The template name:
Return value
string The template source
1 string reference to 'twig_source'
- Twig_Extension_Core::getFunctions in vendor/
Twig/ Extension/ Core.php - Returns a list of global functions to add to the existing list.
File
- vendor/
Twig/ Extension/ Core.php, line 1447
Code
function twig_source(Twig_Environment $env, $name) {
return $env
->getLoader()
->getSource($name);
}