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

Breadcrumb

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

function AliasDeprecatedPublicServicesPass::processValue

Overrides AbstractRecursivePass::processValue

File

vendor/symfony/dependency-injection/Compiler/AliasDeprecatedPublicServicesPass.php, line 53

Class

AliasDeprecatedPublicServicesPass

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

protected function processValue(mixed $value, bool $isRoot = false) : mixed {
    if ($value instanceof Reference && isset($this->aliases[$id = (string) $value])) {
        return new Reference($this->aliases[$id], $value->getInvalidBehavior());
    }
    return parent::processValue($value, $isRoot);
}

API Navigation

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