Search for container

  1. Search 7.x for container
  2. Search 9.5.x for container
  3. Search 8.9.x for container
  4. Search 11.x for container
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Container class core/lib/Drupal/Core/Render/Element/Container.php Provides a render element that wraps child elements in a container.
Container class core/lib/Drupal/Core/DependencyInjection/Container.php Extends the container to prevent serialization.
Container class core/lib/Drupal/Component/DependencyInjection/Container.php Provides a container optimized for Drupal's needs.

All search results

Title Object type File name Summary
DrupalKernel::$bootstrapContainerClass property core/lib/Drupal/Core/DrupalKernel.php Holds the class used for instantiating the bootstrap container.
DrupalKernel::$container property core/lib/Drupal/Core/DrupalKernel.php Holds the container instance.
DrupalKernel::$containerNeedsDumping property core/lib/Drupal/Core/DrupalKernel.php Whether the container needs to be dumped once booting is complete.
DrupalKernel::$containerNeedsRebuild property core/lib/Drupal/Core/DrupalKernel.php Whether the container needs to be rebuilt the next time it is initialized.
DrupalKernel::$defaultBootstrapContainerDefinition property core/lib/Drupal/Core/DrupalKernel.php Holds the default bootstrap container definition.
DrupalKernel::cacheDrupalContainer function core/lib/Drupal/Core/DrupalKernel.php Stores the container definition in a cache.
DrupalKernel::compileContainer function core/lib/Drupal/Core/DrupalKernel.php Compiles a new service container.
DrupalKernel::getCachedContainerDefinition function core/lib/Drupal/Core/DrupalKernel.php Returns the cached container definition - if any.
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.
DrupalKernel::initializeContainer function core/lib/Drupal/Core/DrupalKernel.php Initializes the service container.
DrupalKernel::invalidateContainer function core/lib/Drupal/Core/DrupalKernel.php Invalidate the service container for the next request.
DrupalKernel::rebuildContainer function core/lib/Drupal/Core/DrupalKernel.php Force a container rebuild.
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
phpcs:ignore Drupal.Commenting.FunctionComment.InvalidReturnVoid
DrupalKernelInterface::CONTAINER_INITIALIZE_SUBREQUEST_FINISHED constant core/lib/Drupal/Core/DrupalKernelInterface.php Event fired when the service container finished initializing in subrequest.
DrupalKernelInterface::getCachedContainerDefinition function core/lib/Drupal/Core/DrupalKernelInterface.php Returns the cached container definition - if any.
DrupalKernelInterface::getContainer function core/lib/Drupal/Core/DrupalKernelInterface.php Gets the current container.
DrupalKernelInterface::invalidateContainer function core/lib/Drupal/Core/DrupalKernelInterface.php Invalidate the service container for the next request.
DrupalKernelInterface::rebuildContainer function core/lib/Drupal/Core/DrupalKernelInterface.php Force a container rebuild.
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::$container property core/tests/Drupal/Tests/Core/DrupalTest.php The mock container.
DrupalTest::setMockContainerService function core/tests/Drupal/Tests/Core/DrupalTest.php Sets up a mock expectation for the container get() method.
DrupalTest::testGetContainerException function core/tests/Drupal/Tests/Core/DrupalTest.php @covers ::getContainer
DrupalTest::testSetContainer function core/tests/Drupal/Tests/Core/DrupalTest.php Tests the get/setContainer() method.
Drupal\Component\DependencyInjection\ReverseContainer service core/core.services.yml
ElementsContainerTest class core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php Tests the container form element for expected behavior.
ElementsContainerTest.php file core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php
ElementsContainerTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php The theme to install as the default for testing.
ElementsContainerTest::$modules property core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php Modules to install.
ElementsContainerTest::testOptionalContainerElements function core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php Tests the #optional container property.
EntityFieldManagerTest::$container property core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php The dependency injection container.
EntityListBuilderTest::$container property core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php The service container used for testing.
EntityResolverManagerTest::$container property core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php The mocked dependency injection container.
EntityTestContainerFactoryPlugin class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory.
EntityTestContainerFactoryPlugin.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php
EntityTestContainerFactoryPlugin::create function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php Creates an instance of the plugin.
EntityTypeManager::setContainer function core/lib/Drupal/Core/Entity/EntityTypeManager.php Sets the service container.
ErrorContainer class core/tests/Drupal/FunctionalTests/Bootstrap/ErrorContainer.php Container base class which triggers an error.
ErrorContainer.php file core/tests/Drupal/FunctionalTests/Bootstrap/ErrorContainer.php
ErrorContainer::get function core/tests/Drupal/FunctionalTests/Bootstrap/ErrorContainer.php
ErrorServiceTestServiceProvider::$containerBuilder property core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php The in-situ container builder.
ExceptionContainer class core/tests/Drupal/FunctionalTests/Bootstrap/ExceptionContainer.php Base container which throws an exception.
ExceptionContainer.php file core/tests/Drupal/FunctionalTests/Bootstrap/ExceptionContainer.php
ExceptionContainer::get function core/tests/Drupal/FunctionalTests/Bootstrap/ExceptionContainer.php
ExtensionMimeTypeGuesser::$container property core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php The service container.
field.field.taxonomy_term.forums.forum_container.yml file core/modules/forum/config/optional/field.field.taxonomy_term.forums.forum_container.yml core/modules/forum/config/optional/field.field.taxonomy_term.forums.forum_container.yml
field.storage.taxonomy_term.forum_container.yml file core/modules/forum/config/optional/field.storage.taxonomy_term.forum_container.yml core/modules/forum/config/optional/field.storage.taxonomy_term.forum_container.yml

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