function ServiceProviderInterface::register
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()
- 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()
- 8.9.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php \Drupal\Core\DependencyInjection\ServiceProviderInterface::register()
Registers services to the container.
Parameters
ContainerBuilder $container: The ContainerBuilder to register services to.
2 methods override ServiceProviderInterface::register()
- JsonapiServiceProvider::register in core/
modules/ jsonapi/ src/ JsonapiServiceProvider.php - LayoutBuilderServiceProvider::register in core/
modules/ layout_builder/ src/ LayoutBuilderServiceProvider.php
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ ServiceProviderInterface.php, line 18
Class
- ServiceProviderInterface
- Interface that all service providers must implement.
Namespace
Drupal\Core\DependencyInjectionCode
public function register(ContainerBuilder $container);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.