You are here

public function DrupalKernel::getContainer in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getContainer()

Gets the current container.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance.

Overrides DrupalKernelInterface::getContainer

3 calls to DrupalKernel::getContainer()
UpdateKernel::bootSession in core/lib/Drupal/Core/Update/UpdateKernel.php
Boots up the session.
UpdateKernel::handle in core/lib/Drupal/Core/Update/UpdateKernel.php
UpdateKernel::handleRaw in core/lib/Drupal/Core/Update/UpdateKernel.php
Generates the actual result of update.php.

File

core/lib/Drupal/Core/DrupalKernel.php, line 526

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

public function getContainer() {
  return $this->container;
}