You are here

public static function UserFieldsEventSubscriber::getSubscribedEvents in SAML Authentication 8.3

Same name and namespace in other branches
  1. 4.x modules/samlauth_user_fields/src/EventSubscriber/UserFieldsEventSubscriber.php \Drupal\samlauth_user_fields\EventSubscriber\UserFieldsEventSubscriber::getSubscribedEvents()

File

modules/samlauth_user_fields/src/EventSubscriber/UserFieldsEventSubscriber.php, line 83

Class

UserFieldsEventSubscriber
Synchronizes SAML attributes into user fields / links new users during login.

Namespace

Drupal\samlauth_user_fields\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[SamlauthEvents::USER_LINK][] = [
    'onUserLink',
  ];
  $events[SamlauthEvents::USER_SYNC][] = [
    'onUserSync',
  ];
  return $events;
}