You are here

public function SocialEventMaxEnrollServiceProvider::alter in Open Social 8.9

Same name and namespace in other branches
  1. 8.5 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  2. 8.6 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  3. 8.7 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  4. 8.8 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  5. 10.3.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  6. 10.0.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  7. 10.1.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
  8. 10.2.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php, line 19

Class

SocialEventMaxEnrollServiceProvider
Class SocialEventMaxEnrollServiceProvider.

Namespace

Drupal\social_event_max_enroll

Code

public function alter(ContainerBuilder $container) {
  if ($container
    ->hasDefinition('social_event_an_enroll.overrider')) {
    $container
      ->getDefinition('social_event_max_enroll.overrider')
      ->addArgument(new Reference('social_event_an_enroll.overrider'));
  }
}