You are here

protected function Twig_Loader_Filesystem::normalizeName in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Loader/Filesystem.php \Twig_Loader_Filesystem::normalizeName()
2 calls to Twig_Loader_Filesystem::normalizeName()
Twig_Loader_Filesystem::exists in vendor/Twig/Loader/Filesystem.php
Check if we have the source code of a template, given its name.
Twig_Loader_Filesystem::findTemplate in vendor/Twig/Loader/Filesystem.php

File

vendor/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));
}