function DrupalKernelInterface::getContainer
Same name in other branches
- 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getContainer()
- 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::getContainer()
- 11.x 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 65
Class
- DrupalKernelInterface
- The interface for DrupalKernel, the core of Drupal.
Namespace
Drupal\CoreCode
public function getContainer();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.