function DrupalKernelInterface::getContainer

Same name in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getContainer()
  2. 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getContainer()
  3. 10 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getContainer()

Gets the current container.

Return value

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

1 method overrides DrupalKernelInterface::getContainer()
DrupalKernel::getContainer in core/lib/Drupal/Core/DrupalKernel.php
Gets the current container.

File

core/lib/Drupal/Core/DrupalKernelInterface.php, line 64

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function getContainer();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.