Search for container

  1. Search 7.x for container
  2. Search 8.9.x for container
  3. Search 10.3.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 Drupal container to set the service ID on the created object.
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
Drupal::$container property core/lib/Drupal.php The currently active container object, or NULL if not initialized yet.
Drupal::getContainer function core/lib/Drupal.php Returns the currently active global container.
Drupal::hasContainer function core/lib/Drupal.php Returns TRUE if the container has been initialized, FALSE otherwise.
Drupal::setContainer function core/lib/Drupal.php Sets a new global container.
Drupal::unsetContainer function core/lib/Drupal.php Unsets the global container.
DrupalFlushAllCachesTest::$containerBuilds property core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php Stores the number of container builds.
DrupalKernel::$bootstrapContainer property core/lib/Drupal/Core/DrupalKernel.php Holds the bootstrap container.
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::setContainer function core/lib/Drupal/Core/DrupalKernel.php
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.
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 enable.
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.
EntityStorageDeprecationTest::$container property core/tests/Drupal/Tests/Core/Entity/EntityStorageDeprecationTest.php The 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.
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

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