class SocialLanguageServiceProvider in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.2 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.4 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.5 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.6 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.7 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 8.8 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 10.3.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 10.0.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 10.1.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
- 10.2.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
Class SocialLanguageServiceProvider.
@package Drupal\social_language
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\social_language\SocialLanguageServiceProvider
Expanded class hierarchy of SocialLanguageServiceProvider
File
- modules/
custom/ social_language/ src/ SocialLanguageServiceProvider.php, line 14
Namespace
Drupal\social_languageView source
class SocialLanguageServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('main_content_renderer.modal');
$definition
->setClass('Drupal\\social_language\\SocialLanguageModalRenderer');
$definition = $container
->getDefinition('url_generator');
$definition
->setClass('Drupal\\social_language\\SocialLanguageMetadataBubblingUrlGenerator')
->addArgument(new Reference('language_manager'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
SocialLanguageServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |