static function Util::namespaceLogicalPath in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/Util.php \Drupal\xautoload\Util::namespaceLogicalPath()
Replace the namespace separator with directory separator.
Parameters
string $namespace: Namespace without trailing namespace separator.
Return value
string Path fragment representing the namespace, with trailing '/'.
14 calls to Util::namespaceLogicalPath()
- ClassFinder::add in lib/
ClassFinder/ ClassFinder.php - Add PSR-0 style prefixes. Alias for ->addPsr0().
- ClassFinder::addNamespacePsr0 in lib/
ClassFinder/ ClassFinder.php - Add PSR-0 style namespace. This will assume that we are really dealing with a namespace, even if it has no '\\' included.
- ClassFinder::addPsr4 in lib/
ClassFinder/ ClassFinder.php - ClassFinder::registerNamespaceDeep in lib/
ClassFinder/ ClassFinder.php - Alias for registerNamespaceDeepLocation()
- ClassFinder::registerNamespaceDeepLocation in lib/
ClassFinder/ ClassFinder.php - Register a deep filesystem location for a given namespace.
File
- lib/
Util.php, line 150
Class
- Util
- A number of static methods that don't interact with any global state.
Namespace
Drupal\xautoloadCode
static function namespaceLogicalPath($namespace) {
return strlen($namespace) ? str_replace('\\', '/', rtrim($namespace, '\\') . '\\') : '';
}