protected function ZfExtensionManagerSfContainer::canonicalizeName in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php \Drupal\Component\Bridge\ZfExtensionManagerSfContainer::canonicalizeName()
This method was based from Zend Framework (http://framework.zend.com/)
@link http://github.com/zendframework/zf2 for the canonical source repository @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) @license http://framework.zend.com/license/new-bsd New BSD License
Canonicalize the extension name to a service name.
Parameters
string $name: The extension name.
Return value
string The service name, without the prefix.
2 calls to ZfExtensionManagerSfContainer::canonicalizeName()
- ZfExtensionManagerSfContainer::get in lib/
Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php - ZfExtensionManagerSfContainer::has in lib/
Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php
File
- lib/
Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php, line 94 - Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.
Class
- ZfExtensionManagerSfContainer
- Defines a bridge between the ZF2 service manager to Symfony container.
Namespace
Drupal\Component\BridgeCode
protected function canonicalizeName($name) {
if (isset($this->canonicalNames[$name])) {
return $this->canonicalNames[$name];
}
// This is just for performance instead of using str_replace().
return $this->canonicalNames[$name] = strtolower(strtr($name, $this->canonicalNamesReplacements));
}