public function SocialEventMaxEnrollServiceProvider::alter in Open Social 8.9
Same name and namespace in other branches
- 8.5 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 8.6 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 8.7 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 8.8 modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 10.3.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 10.0.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 10.1.x modules/social_features/social_event/modules/social_event_max_enroll/src/SocialEventMaxEnrollServiceProvider.php \Drupal\social_event_max_enroll\SocialEventMaxEnrollServiceProvider::alter()
- 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_enrollCode
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'));
}
}