You are here

class SocialLanguageServiceProvider in Open Social 8.3

Same name and namespace in other branches
  1. 8.9 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  2. 8 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  3. 8.2 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  4. 8.4 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  5. 8.5 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  6. 8.6 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  7. 8.7 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  8. 8.8 modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  9. 10.3.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  10. 10.0.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  11. 10.1.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider
  12. 10.2.x modules/custom/social_language/src/SocialLanguageServiceProvider.php \Drupal\social_language\SocialLanguageServiceProvider

Class SocialLanguageServiceProvider.

@package Drupal\social_language

Hierarchy

Expanded class hierarchy of SocialLanguageServiceProvider

File

modules/custom/social_language/src/SocialLanguageServiceProvider.php, line 14

Namespace

Drupal\social_language
View 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

Namesort descending Modifiers Type Description Overrides
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1
SocialLanguageServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter