You are here

class SocialGroupInviteServiceProvider in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_group/modules/social_group_invite/src/SocialGroupInviteServiceProvider.php \Drupal\social_group_invite\SocialGroupInviteServiceProvider
  2. 10.0.x modules/social_features/social_group/modules/social_group_invite/src/SocialGroupInviteServiceProvider.php \Drupal\social_group_invite\SocialGroupInviteServiceProvider
  3. 10.1.x modules/social_features/social_group/modules/social_group_invite/src/SocialGroupInviteServiceProvider.php \Drupal\social_group_invite\SocialGroupInviteServiceProvider
  4. 10.2.x modules/social_features/social_group/modules/social_group_invite/src/SocialGroupInviteServiceProvider.php \Drupal\social_group_invite\SocialGroupInviteServiceProvider

Class SocialGroupInviteServiceProvider.

@package Drupal\social_group_invite

Hierarchy

Expanded class hierarchy of SocialGroupInviteServiceProvider

File

modules/social_features/social_group/modules/social_group_invite/src/SocialGroupInviteServiceProvider.php, line 13

Namespace

Drupal\social_group_invite
View source
class SocialGroupInviteServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {

    // If ginvite is enabled, remove it's service which
    // sends a drupal set message on every page.
    if ($container
      ->hasDefinition('ginvite_event_subscriber')) {
      $container
        ->removeDefinition('ginvite_event_subscriber');
    }
  }

}

Members

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