You are here

public static function UserFieldsEventSubscriber::getSubscribedEvents in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 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;
}