private function ResolveReferencesToAliasesPass::getDefinitionId

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

2 calls to ResolveReferencesToAliasesPass::getDefinitionId()
ResolveReferencesToAliasesPass::process in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php
Processes the ContainerBuilder to replace references to aliases with actual service references.
ResolveReferencesToAliasesPass::processArguments in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php
Processes the arguments to replace aliases.

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;
}