Search for getContainer

  1. Search 7.x for getContainer
  2. Search 9.5.x for getContainer
  3. Search 8.9.x for getContainer
  4. Search 10.3.x for getContainer
  5. Other projects
Title Object type File name Summary
Drupal::getContainer function core/lib/Drupal.php Returns the currently active global container.
DrupalKernel::getContainer function core/lib/Drupal/Core/DrupalKernel.php Gets the current container.
DrupalKernel::getContainerBuilder function core/lib/Drupal/Core/DrupalKernel.php Gets a new ContainerBuilder instance used to build the service container.
DrupalKernel::getContainerCacheKey function core/lib/Drupal/Core/DrupalKernel.php Returns the container cache key based on the environment.
DrupalKernelInterface::getContainer function core/lib/Drupal/Core/DrupalKernelInterface.php Gets the current container.
DrupalTest::testGetContainerException function core/tests/Drupal/Tests/Core/DrupalTest.php @covers ::getContainer
MockService::getContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Gets the container object.
UnitTestCase::getContainerWithCacheTagsInvalidator function core/tests/Drupal/Tests/UnitTestCase.php Sets up a container with a cache tags invalidator.

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