Search for setContainer

  1. Search 7.x for setContainer
  2. Search 9.5.x for setContainer
  3. Search 8.9.x for setContainer
  4. Search 10.3.x for setContainer
  5. Other projects
Title Object type File name Summary
CacheFactory::setContainer function core/lib/Drupal/Core/Cache/CacheFactory.php Sets the service container.
ChainedFastBackendFactory::setContainer function core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php Sets the service container.
ContainerRebuildWebTest::testSetContainerRebuildWithDifferentDeploymentIdentifier function core/modules/system/tests/src/Functional/DrupalKernel/ContainerRebuildWebTest.php Sets a different deployment identifier.
DependencySerializationTestDummy::setContainer function core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
Drupal::setContainer function core/lib/Drupal.php Sets a new global container.
Drupal::unsetContainer function core/lib/Drupal.php Unsets the global container.
DrupalKernel::resetContainer function core/lib/Drupal/Core/DrupalKernel.php Force a container reset.
DrupalKernelInterface::resetContainer function core/lib/Drupal/Core/DrupalKernelInterface.php Force a container reset.
DrupalKernelTest::testResetContainer function core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php @covers ::resetContainer
DrupalTest::testSetContainer function core/tests/Drupal/Tests/Core/DrupalTest.php Tests the get/setContainer() method.
FunctionalTestSetupTrait::setContainerParameter function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Changes parameters in the services.yml file.
MockService::setContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Sets the container object.
TestKernel::setContainerWithKernel function core/lib/Drupal/Core/Test/TestKernel.php Sets a container with a kernel service on the Drupal class.

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