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

Breadcrumb

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

function Container::initialized

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()

Returns true if the given service has actually been initialized.

Overrides ContainerInterface::initialized

File

vendor/symfony/dependency-injection/Container.php, line 264

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function initialized(string $id) : bool {
    if (isset($this->aliases[$id])) {
        $id = $this->aliases[$id];
    }
    if ('service_container' === $id) {
        return false;
    }
    return isset($this->services[$id]);
}

API Navigation

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