You are here

interface ServiceModifierInterface 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

Interface that service providers can implement to modify services.

Hierarchy

Expanded class hierarchy of ServiceModifierInterface

All classes that implement ServiceModifierInterface

Related topics

9 files declare their use of ServiceModifierInterface
AcceptHeaderRoutingTestServiceProvider.php in core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
Contains \Drupal\accept_header_routing_test\AcceptHeaderRoutingTestServiceProvider.
DrupalKernel.php in core/lib/Drupal/Core/DrupalKernel.php
Contains \Drupal\Core\DrupalKernel.
ErrorServiceTestServiceProvider.php in core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
Contains \Drupal\error_service_test\ErrorServiceTestServiceProvider.
HalServiceProvider.php in core/modules/hal/src/HalServiceProvider.php
Contains \Drupal\hal\HalServiceProvider.
InstallerServiceProvider.php in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
Contains \Drupal\Core\Installer\InstallerServiceProvider.

... See full list

File

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

Namespace

Drupal\Core\DependencyInjection
View source
interface ServiceModifierInterface {

  /**
   * Modifies existing service definitions.
   *
   * @param ContainerBuilder $container
   *   The ContainerBuilder whose service definitions can be altered.
   */
  public function alter(ContainerBuilder $container);

}

Members

Namesort descending Modifiers Type Description Overrides
ServiceModifierInterface::alter public function Modifies existing service definitions. 8