39 calls to Drupal::getContainer() in Drupal 9
- BigPipeTestController::test in core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ BigPipeTestController.php - Returns all BigPipe placeholder test case render arrays.
- BlockUiTest::testBlockPlacementIndicator in core/
modules/ block/ tests/ src/ Functional/ BlockUiTest.php - Tests the block placement indicator.
- Cache::getBins in core/
lib/ Drupal/ Core/ Cache/ Cache.php - Gets all cache bin services.
- ConfigInstallTest::installModules in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigInstallTest.php - Installs a module.
- ConfigOtherModuleTest::installModule in core/
modules/ config/ tests/ src/ Functional/ ConfigOtherModuleTest.php - Installs a module.
- ConfigOtherModuleTest::uninstallModule in core/
modules/ config/ tests/ src/ Functional/ ConfigOtherModuleTest.php - Uninstalls a module.
- ConstraintFactory::createInstance in core/
lib/ Drupal/ Core/ Validation/ ConstraintFactory.php - Creates a pre-configured instance of a plugin.
- ContainerDerivativeDiscoveryDecorator::getDeriver in core/
lib/ Drupal/ Core/ Plugin/ Discovery/ ContainerDerivativeDiscoveryDecorator.php - Gets a deriver for a base plugin.
- ContainerFactory::createInstance in core/
lib/ Drupal/ Core/ Plugin/ Factory/ ContainerFactory.php - Creates a pre-configured instance of a plugin.
- ControllerBase::container in core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php - Returns the service container.
- DependencySerializationTrait::__wakeup in core/
lib/ Drupal/ Core/ DependencyInjection/ DependencySerializationTrait.php - DisplayPluginBase::elementPreRender in core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php - #pre_render callback for view display rendering.
- DrupalTest::testGetContainerException in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - @covers ::getContainer
- DrupalTest::testSetContainer in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the get/setContainer() method.
- EntityKernelTestBase::refreshServices in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityKernelTestBase.php - Refresh services.
- Extension::__wakeup in core/
lib/ Drupal/ Core/ Extension/ Extension.php - Magic method implementation to unserialize the extension object.
- field_ui_local_tasks_alter in core/
modules/ field_ui/ field_ui.module - Implements hook_local_tasks_alter().
- FormatterPluginManager::createInstance in core/
lib/ Drupal/ Core/ Field/ FormatterPluginManager.php - Creates a pre-configured instance of a plugin.
- FormBase::container in core/
lib/ Drupal/ Core/ Form/ FormBase.php - Returns the service container.
- FunctionalTestSetupTrait::installModulesFromClassProperty in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Install modules defined by `static::$modules`.
- FunctionalTestSetupTrait::resetAll in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Resets all data structures after having enabled new modules.
- KernelTestBaseTest::testRegister in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - @covers ::register
- MigratePluginManager::createInstance in core/
modules/ migrate/ src/ Plugin/ MigratePluginManager.php - Creates a pre-configured instance of a migration plugin.
- MigrationPluginManager::createStubMigration in core/
modules/ migrate/ src/ Plugin/ MigrationPluginManager.php - Creates a stub migration plugin from a definition array.
- NodeOwnerTest::testOwner in core/
modules/ node/ tests/ src/ Kernel/ NodeOwnerTest.php - Tests node owner functionality.
- NodeTypeTest::testNodeTypeDeletion in core/
modules/ node/ tests/ src/ Functional/ NodeTypeTest.php - Tests deleting a content type that still has content.
- RedirectResponseSubscriberTest::testDestinationRedirect in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ RedirectResponseSubscriberTest.php - Tests destination detection and redirection.
- RedirectResponseSubscriberTest::testDestinationRedirectToExternalUrl in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ RedirectResponseSubscriberTest.php - @dataProvider providerTestDestinationRedirectToExternalUrl
- RedirectResponseSubscriberTest::testDestinationRedirectWithInvalidUrl in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ RedirectResponseSubscriberTest.php - @dataProvider providerTestDestinationRedirectWithInvalidUrl
- RedirectResponseSubscriberTest::testRedirectWithOptInExternalUrl in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ RedirectResponseSubscriberTest.php - @covers ::checkRedirectUrl
- RouteProvider::lazyLoadItself in core/
tests/ Drupal/ KernelTests/ RouteProvider.php - Loads the real route provider from the container and rebuilds the router.
- SqlTest::setupEntityTypeManager in core/
modules/ views/ tests/ src/ Unit/ Plugin/ query/ SqlTest.php - Sets up the entity type manager in the container.
- SqlTest::setupViewsData in core/
modules/ views/ tests/ src/ Unit/ Plugin/ query/ SqlTest.php - Sets up the views data in the container.
- TempStoreDatabaseTest::testSharedTempStore in core/
tests/ Drupal/ KernelTests/ Core/ TempStore/ TempStoreDatabaseTest.php - Tests the SharedTempStore API.
- ToolbarCacheContextsTest::installExtraModules in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarCacheContextsTest.php - Installs a given list of modules and rebuilds the cache.
- UpdatePathTestBase::setUp in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBase.php - Overrides BrowserTestBase::setUp() for update testing.
- views_local_tasks_alter in core/
modules/ views/ views.module - Implements hook_local_tasks_alter().
- WidgetPluginManager::createInstance in core/
lib/ Drupal/ Core/ Field/ WidgetPluginManager.php - Creates a pre-configured instance of a plugin.
- WorkspaceTestTrait::initializeWorkspacesModule in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceTestTrait.php - Enables the Workspaces module and creates two workspaces.