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
ContainerTest::testGetForNonExistentNULLService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for NULL service works properly.
@covers ::get
@covers ::createService
ContainerTest::testGetForNonExistentParameterDependency function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent parameters works properly.
ContainerTest::testGetForNonExistentParameterDependencyWithException function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent parameters works properly.
ContainerTest::testGetForNonExistentService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent services works properly.
ContainerTest::testGetForNonExistentServiceDependency function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent dependencies works properly.
ContainerTest::testGetForNonExistentServiceDependencyWithException function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent dependencies works properly.
ContainerTest::testGetForNonExistentServiceMultipleTimes function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests multiple Container::get() calls for non-existing dependencies work.
ContainerTest::testGetForNonExistentServiceWhenUsingNull function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-existent services works properly.
ContainerTest::testGetForNonExistentServiceWithExceptionOnSecondCall function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests multiple Container::get() calls with exception on the second time.
ContainerTest::testGetForNonSharedService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for non-shared services works properly.
ContainerTest::testGetForParameterDependencyWithExceptionOnSecondCall function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests Container::get() with an exception due to missing parameter on the second call.
ContainerTest::testGetForSerializedServiceDefinition function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for a serialized definition works properly.
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::testGetServiceIdMappings function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php @covers \Drupal\Component\DependencyInjection\ServiceIdHashTrait::getServiceIdMappings
@covers \Drupal\Component\DependencyInjection\ServiceIdHashTrait::generateServiceIdHash
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::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::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
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.
DatabaseLockBackend::$container property core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php The service container.
DependencySerializationTest::testSerializationWithoutReverseContainer function core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php @covers ::__sleep
@covers ::__wakeup
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.

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