Resolves an alias into a definition id.
Parameters
string $id The definition or alias id to resolve:
Return value
string The definition id with aliases resolved
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php, line 85
Class
- ResolveReferencesToAliasesPass
- Replaces all references to aliases with references to the actual service.
Namespace
Symfony\Component\DependencyInjection\Compiler
Code
private function getDefinitionId($id) {
while ($this->container
->hasAlias($id)) {
$id = (string) $this->container
->getAlias($id);
}
return $id;
}