You are here

final class SocialAuthEvents in Social Auth 8

Same name and namespace in other branches
  1. 8.2 src/Event/SocialAuthEvents.php \Drupal\social_auth\Event\SocialAuthEvents
  2. 3.x src/Event/SocialAuthEvents.php \Drupal\social_auth\Event\SocialAuthEvents

Defines Social Auth Events constants.

Hierarchy

Expanded class hierarchy of SocialAuthEvents

1 file declares its use of SocialAuthEvents
SocialAuthUserManager.php in src/SocialAuthUserManager.php

File

src/Event/SocialAuthEvents.php, line 8

Namespace

Drupal\social_auth\Event
View source
final class SocialAuthEvents {

  /**
   * Name of the event fired when social auth is gathering user fields.
   *
   * Fired before a new user is created when gathering fields.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\SocialAuthUserFieldsEvent
   *
   * @var string
   */
  const USER_FIELDS = 'social_auth.user.fields';

  /**
   * Name of the event fired when a new user is created via social auth.
   *
   * Fired after a new user account has been created.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\SocialAuthUserEvent
   *
   * @var string
   */
  const USER_CREATED = 'social_auth.user.created';

  /**
   * Name of the event fired when a new user login using social auth.
   *
   * Fired after a user has logged in.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\SocialAuthUserEvent
   *
   * @var string
   */
  const USER_LOGIN = 'social_auth.user.login';

}

Members

Namesort descending Modifiers Type Description Overrides
SocialAuthEvents::USER_CREATED constant Name of the event fired when a new user is created via social auth.
SocialAuthEvents::USER_FIELDS constant Name of the event fired when social auth is gathering user fields.
SocialAuthEvents::USER_LOGIN constant Name of the event fired when a new user login using social auth.