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 11.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.
ClassResolver::setContainer function core/lib/Drupal/Core/DependencyInjection/ClassResolver.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 phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
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.
DrupalKernel::setContainer function core/lib/Drupal/Core/DrupalKernel.php phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
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.
EntityTypeManager::setContainer function core/lib/Drupal/Core/Entity/EntityTypeManager.php Sets the service container.
FunctionalTestSetupTrait::setContainerParameter function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Changes parameters in the services.yml file.
MockContainerAware::setContainer function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php Sets the service container.
MockContainerAware::setContainer function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Sets the service container.
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.