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 10.3.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.
Container class ./Container.php Provides a render element that wraps child elements in a container.

All search results

Title Object type File name Summary
ContainerTest::testGetForSyntheticService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for synthetic services works - if defined.
ContainerTest::testGetForSyntheticServiceWithException function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for synthetic services throws an Exception if not defined.
ContainerTest::testGetForWrongFactory function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for wrong factories works correctly.
ContainerTest::testGetParameter function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::getParameter() works properly.
ContainerTest::testGetParameterIfNotFound function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::getParameter() works for non-existing parameters.
ContainerTest::testGetParameterIfNotFoundBecauseNull function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::getParameter() works properly for NULL parameters.
ContainerTest::testGetServiceIds function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::getServiceIds() works properly.
ContainerTest::testGetWithFileInclude function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for services with file includes works.
ContainerTest::testHas function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::has() works properly.
ContainerTest::testHasForAliasedService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::has() for aliased services works properly.
ContainerTest::testHasParameter function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::hasParameter() works properly.
ContainerTest::testInitialized function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::initialized works correctly.
ContainerTest::testInitializedForAliases function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::initialized works correctly for aliases.
ContainerTest::testIterator function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that service iterators are lazily instantiated.
ContainerTest::testReset function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests Container::reset().
ContainerTest::testResolveServicesAndParametersForArgumentsUsingDeepArray function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that services with an array of arguments work correctly.
ContainerTest::testResolveServicesAndParametersForInvalidArgument function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that an invalid argument throw an Exception.
ContainerTest::testResolveServicesAndParametersForInvalidArguments function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that invalid arguments throw an Exception.
ContainerTest::testResolveServicesAndParametersForOptionalServiceDependencies function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that services that are optional work correctly.
ContainerTest::testResolveServicesAndParametersForPrivateService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that private services work correctly.
ContainerTest::testResolveServicesAndParametersForRawArgument function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that raw type services arguments are resolved correctly.
ContainerTest::testResolveServicesAndParametersForServiceInstantiatedFromParameter function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that a parameter that points to a service works correctly.
ContainerTest::testResolveServicesAndParametersForServiceReferencedViaServiceClosure function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that services wrapped in a closure work correctly.
ContainerTest::testResolveServicesAndParametersForSharedPrivateService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that private service sharing works correctly.
ContainerTest::testSerialize function core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php Tests serialization.
ContainerTest::testSet function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::set() works properly.
ContainerTest::testSetParameterWithFrozenContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::setParameter() in a frozen case works properly.
ContainerTest::testSetParameterWithUnfrozenContainer function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::setParameter() in an unfrozen case works properly.
container_rebuild_test.info.yml file core/modules/system/tests/modules/container_rebuild_test/container_rebuild_test.info.yml core/modules/system/tests/modules/container_rebuild_test/container_rebuild_test.info.yml
container_rebuild_test.routing.yml file core/modules/system/tests/modules/container_rebuild_test/container_rebuild_test.routing.yml core/modules/system/tests/modules/container_rebuild_test/container_rebuild_test.routing.yml
container_test_file_service_test_service_function function core/tests/Drupal/Tests/Component/DependencyInjection/Fixture/container_test_file_service_test_service_function.php Test function for container testing.
container_test_file_service_test_service_function.php file core/tests/Drupal/Tests/Component/DependencyInjection/Fixture/container_test_file_service_test_service_function.php
ContentUninstallValidator::$container property core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php The service container.
ControllerBase::container function core/lib/Drupal/Core/Controller/ControllerBase.php Returns the service container.
ControllerResolverTest::$container property core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php The container.
Cron::$container property core/lib/Drupal/Core/ProxyClass/Cron.php The service container.
DatabaseDriverUninstallValidator::$container property core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php The service container.
DatabaseEventsTest::testEventDispatchingWhenNoContainerAvailable function core/tests/Drupal/Tests/Core/Database/DatabaseEventsTest.php @covers ::dispatchEvent
DatabaseLockBackend::$container property core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php The service container.
DependencySerializationTestDummy::$container property core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php The container.
DependencySerializationTestDummy::setContainer function core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
DiscoverServiceProvidersTest::testDiscoverServiceNoContainerYamls function core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php Tests the exception when container_yamls is not set.
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.

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