public function ServiceModifierInterface::alter in Service Container 7
Same name and namespace in other branches
- 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\DependencyInjectionCode
public function alter(ContainerBuilder $container);