interface ServiceModifierInterface
Same name in other branches
- 9 core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php \Drupal\Core\DependencyInjection\ServiceModifierInterface
- 10 core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php \Drupal\Core\DependencyInjection\ServiceModifierInterface
- 11.x core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php \Drupal\Core\DependencyInjection\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
14 files declare their use of ServiceModifierInterface
- AcceptHeaderRoutingTestServiceProvider.php in core/
modules/ system/ tests/ modules/ accept_header_routing_test/ src/ AcceptHeaderRoutingTestServiceProvider.php - CoreServiceProvider.php in core/
lib/ Drupal/ Core/ CoreServiceProvider.php - DrupalKernel.php in core/
lib/ Drupal/ Core/ DrupalKernel.php - ErrorServiceTestServiceProvider.php in core/
modules/ system/ tests/ modules/ error_service_test/ src/ ErrorServiceTestServiceProvider.php - FileServiceProvider.php in core/
modules/ file/ src/ FileServiceProvider.php
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ ServiceModifierInterface.php, line 10
Namespace
Drupal\Core\DependencyInjectionView 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. | 13 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.