SocialLanguageServiceProvider.php in Open Social 10.1.x
Same filename and directory in other branches
- 8.9 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.2 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.3 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.4 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.5 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.6 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.7 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 8.8 modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 10.3.x modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 10.0.x modules/custom/social_language/src/SocialLanguageServiceProvider.php
- 10.2.x modules/custom/social_language/src/SocialLanguageServiceProvider.php
Namespace
Drupal\social_languageFile
modules/custom/social_language/src/SocialLanguageServiceProvider.phpView source
<?php
namespace Drupal\social_language;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
/**
* Class SocialLanguageServiceProvider.
*
* @package Drupal\social_language
*/
class SocialLanguageServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('main_content_renderer.modal');
$definition
->setClass('Drupal\\social_language\\SocialLanguageModalRenderer');
}
}
Classes
Name | Description |
---|---|
SocialLanguageServiceProvider | Class SocialLanguageServiceProvider. |