Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AnalyzeServiceReferencesPass.php

function AnalyzeServiceReferencesPass::getDefinitionId

2 calls to AnalyzeServiceReferencesPass::getDefinitionId()
AnalyzeServiceReferencesPass::process in vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php
Processes a ContainerBuilder object to populate the service reference graph.
AnalyzeServiceReferencesPass::processValue in vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php
Processes a value found in a definition tree.

File

vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php, line 193

Class

AnalyzeServiceReferencesPass
Run this pass before passes that need to know more about the relation of your services.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function getDefinitionId(string $id) : ?string {
    while (isset($this->aliases[$id])) {
        $id = (string) $this->aliases[$id];
    }
    return isset($this->definitions[$id]) ? $id : null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal