You are here

protected function Twig_Loader_Filesystem::normalizeName in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.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 210

Class

Twig_Loader_Filesystem
Loads template from the filesystem.

Code

protected function normalizeName($name) {
  return preg_replace('#/{2,}#', '/', strtr((string) $name, '\\', '/'));
}