You are here

public function ServiceModifierInterface::alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php \Drupal\Core\DependencyInjection\ServiceModifierInterface::alter()

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

8 methods override ServiceModifierInterface::alter()
AcceptHeaderRoutingTestServiceProvider::alter in core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
Modifies existing service definitions.
ErrorServiceTestServiceProvider::alter in core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
Modifies existing service definitions.
HalServiceProvider::alter in core/modules/hal/src/HalServiceProvider.php
Modifies existing service definitions.
InstallerServiceProvider::alter in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
Modifies existing service definitions.
ServiceProviderBase::alter in core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php
Modifies existing service definitions.

... See full list

File

core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php, line 23
Contains \Drupal\Core\DependencyInjection\ServiceModifierInterface.

Class

ServiceModifierInterface
Interface that service providers can implement to modify services.

Namespace

Drupal\Core\DependencyInjection

Code

public function alter(ContainerBuilder $container);