You are here

public function Container::initialized in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::initialized()

File

core/lib/Drupal/Component/DependencyInjection/Container.php, line 358

Class

Container
Provides a container optimized for Drupal's needs.

Namespace

Drupal\Component\DependencyInjection

Code

public function initialized($id) {
  if (isset($this->aliases[$id])) {
    $id = $this->aliases[$id];
  }
  return isset($this->services[$id]) || array_key_exists($id, $this->services);
}