Search for container

  1. Search 7.x for container
  2. Search 9.5.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
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[[api-linebreak]]
DrupalTest::testSetContainer function core/tests/Drupal/Tests/Core/DrupalTest.php Tests the get/setContainer() method.
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.
EnvironmentCleanerFactory::$container property core/modules/simpletest/src/EnvironmentCleanerFactory.php The container.
ExtensionMimeTypeGuesser::$container property core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php The service container.
FormBase::container function core/lib/Drupal/Core/Form/FormBase.php Returns the service container.
FunctionalTestSetupTrait::rebuildContainer function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Rebuilds \Drupal::getContainer().
FunctionalTestSetupTrait::setContainerParameter function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Changes parameters in the services.yml file.
HandlerStackConfigurator::$container property core/lib/Drupal/Core/Http/HandlerStackConfigurator.php The service container.
InstallerKernel::initializeContainer function core/lib/Drupal/Core/Installer/InstallerKernel.php Initializes the service container.
KernelTestBase::containerBuild function core/modules/simpletest/src/KernelTestBase.php Sets up the base service container for this test.
KernelTestBaseTest::testEnableModulesInstallContainer function core/modules/simpletest/src/Tests/KernelTestBaseTest.php Tests installing modules with DependencyInjection services.
KeyValueFactory::$container property core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
LazyContextRepository::$container property core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php The service container.
LazyContextRepositoryTest::$container property core/tests/Drupal/Tests/Core/Plugin/Context/LazyContextRepositoryTest.php The container.
LocalTaskIntegrationTestBase::$container property core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php The container.
MatcherDumper::$container property core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php The service container.
MenuLinkPluginConverter::$container property core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php The service container.
MimeTypeGuesser::$container property core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php The service container.
MockService::$container property core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
MockService::getContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Gets the container object.
MockService::setContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Sets the container object.
ModuleInstaller::$container property core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php The service container.
OptimizedPhpArrayDumperTest::$containerBuilder property core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php The container builder instance.
OptimizedPhpArrayDumperTest::$containerDefinition property core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php The definition for the container to build in tests.
OptimizedPhpArrayDumperTest::testDumpForEmptyContainer function core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php Tests that an empty container works properly.

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