Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceModifierInterface.php

interface ServiceModifierInterface

Interface that service providers can implement to modify services.

Hierarchy

  • interface \Drupal\Core\DependencyInjection\ServiceModifierInterface

Expanded class hierarchy of ServiceModifierInterface

All classes that implement ServiceModifierInterface

Related topics

Services and Dependency Injection Container
Overview of the Dependency Injection Container and Services.
7 files declare their use of ServiceModifierInterface
CoreServiceProvider.php in core/lib/Drupal/Core/CoreServiceProvider.php
DrupalKernel.php in core/lib/Drupal/Core/DrupalKernel.php
FileServiceProvider.php in core/modules/file/src/FileServiceProvider.php
InstallerServiceProvider.php in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
JsonapiServiceProvider.php in core/modules/jsonapi/src/JsonapiServiceProvider.php

... See full list

File

core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php, line 10

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

Title Sort descending Modifiers Object type Summary Overrides
ServiceModifierInterface::alter public function Modifies existing service definitions. 6
RSS feed
Powered by Drupal