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

Breadcrumb

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

function ServiceModifierInterface::alter

Modifies existing service definitions.

Parameters

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

6 methods override ServiceModifierInterface::alter()
CoreServiceProvider::alter in core/lib/Drupal/Core/CoreServiceProvider.php
Alters the UUID service to use the most efficient method available.
FileServiceProvider::alter in core/modules/file/src/FileServiceProvider.php
Modifies existing service definitions.
InstallerServiceProvider::alter in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
Modifies existing service definitions.
JsonapiServiceProvider::alter in core/modules/jsonapi/src/JsonapiServiceProvider.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 18

Class

ServiceModifierInterface
Interface that service providers can implement to modify services.

Namespace

Drupal\Core\DependencyInjection

Code

public function alter(ContainerBuilder $container);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal