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

Breadcrumb

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

function ContainerBuilder::getServiceConditionals

@internal

Return value

string[]

3 calls to ContainerBuilder::getServiceConditionals()
ContainerBuilder::callMethod in vendor/symfony/dependency-injection/ContainerBuilder.php
ContainerBuilder::doResolveServices in vendor/symfony/dependency-injection/ContainerBuilder.php
PhpDumper::getServiceConditionals in vendor/symfony/dependency-injection/Dumper/PhpDumper.php

File

vendor/symfony/dependency-injection/ContainerBuilder.php, line 1633

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public static function getServiceConditionals(mixed $value) : array {
    $services = [];
    if (\is_array($value)) {
        foreach ($value as $v) {
            $services = array_unique(array_merge($services, self::getServiceConditionals($v)));
        }
    }
    elseif ($value instanceof Reference && ContainerInterface::IGNORE_ON_INVALID_REFERENCE === $value->getInvalidBehavior()) {
        $services[] = (string) $value;
    }
    return $services;
}

API Navigation

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