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
ContainerTest.php file core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php
ContainerTest.php file core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Contains \Drupal\Tests\Component\DependencyInjection\ContainerTest.
ContainerTest::$container property core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php The tested container.
ContainerTest::$containerClass property core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php The container class to be tested.
ContainerTest::$containerDefinition property core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php The container definition used for the test.
ContainerTest::$machineFormat property core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Whether the container uses the machine-optimized format or not.
ContainerTest::getCollection function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper function to return a machine-optimized collection.
ContainerTest::getMockContainerDefinition function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Gets a mock container definition.
ContainerTest::getParameterCall function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper function to return a parameter definition.
ContainerTest::getPrivateServiceCall function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper function to return a private service definition.
ContainerTest::getRaw function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper function to return a raw value definition.
ContainerTest::getServiceCall function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper function to return a service definition.
ContainerTest::setUp function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
ContainerTest::testConstruct function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that passing a non-supported format throws an InvalidArgumentException.
ContainerTest::testGet function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() works properly.
ContainerTest::testGetForAliasedService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for aliased services works properly.
ContainerTest::testGetForCircularServices function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for circular dependencies works properly.
@covers ::get
@covers ::createService
ContainerTest::testGetForClassFromParameter function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() works properly for class from parameters.
ContainerTest::testGetForConfigurator function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for configurable services works.
ContainerTest::testGetForConfiguratorWithException function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for configurable services throws an Exception.
ContainerTest::testGetForFactoryClass function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for factories via class works (Symfony 2.7.0).
ContainerTest::testGetForFactoryService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests Container::get() for factories via services (Symfony 2.7.0).
ContainerTest::testGetForInstantiationWithVariousArgumentLengths function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::get() for various arguments lengths works.
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 properly 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::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.

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