protected function Twig_Loader_Filesystem::normalizeName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Loader/Filesystem.php \Twig_Loader_Filesystem::normalizeName()
2 calls to Twig_Loader_Filesystem::normalizeName()
- Twig_Loader_Filesystem::exists in vendor/
twig/ twig/ lib/ Twig/ Loader/ Filesystem.php - Check if we have the source code of a template, given its name.
- Twig_Loader_Filesystem::findTemplate in vendor/
twig/ twig/ lib/ Twig/ Loader/ Filesystem.php
File
- vendor/
twig/ twig/ lib/ Twig/ Loader/ Filesystem.php, line 234
Class
- Twig_Loader_Filesystem
- Loads template from the filesystem.
Code
protected function normalizeName($name) {
return preg_replace('#/{2,}#', '/', str_replace('\\', '/', (string) $name));
}