function ServiceProviderBase::alter

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase::alter()
  2. 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase::alter()
  3. 11.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase::alter()

Overrides ServiceModifierInterface::alter

2 calls to ServiceProviderBase::alter()
MediaTestOembedServiceProvider::alter in core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php
Modifies existing service definitions.
MigrateDrupalServiceProvider::alter in core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php
Modifies existing service definitions.
5 methods override ServiceProviderBase::alter()
InlineFormErrorsServiceProvider::alter in core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php
Modifies existing service definitions.
LanguageServiceProvider::alter in core/modules/language/src/LanguageServiceProvider.php
Modifies existing service definitions.
MediaTestOembedServiceProvider::alter in core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php
Modifies existing service definitions.
MigrateDrupalServiceProvider::alter in core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php
Modifies existing service definitions.
WorkspacesServiceProvider::alter in core/modules/workspaces/src/WorkspacesServiceProvider.php
Modifies existing service definitions.

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php, line 21

Class

ServiceProviderBase
Base service provider implementation.

Namespace

Drupal\Core\DependencyInjection

Code

public function alter(ContainerBuilder $container) {
}

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