You are here

public function ServiceModifierInterface::alter in Service Container 7

Same name and namespace in other branches
  1. 7.2 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.

1 method overrides ServiceModifierInterface::alter()
ServiceProviderBase::alter in lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php
Modifies existing service definitions.

File

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);