You are here

public static function EventSubscribers::getSubscribedEvents in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::getSubscribedEvents()
  2. 10.3.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::getSubscribedEvents()
  3. 10.1.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::getSubscribedEvents()
  4. 10.2.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::getSubscribedEvents()

Get the request events.

Return value

mixed Returns request events.

File

modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php, line 58

Class

EventSubscribers
Class CustomRedirects.

Namespace

Drupal\social_group_invite\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'customRedirect',
  ];
  $events[ConfigEvents::SAVE][] = [
    'checkForInvite',
  ];
  return $events;
}