You are here

class UserLoginEvent in Rules 8.3

Event that is fired when a user logs in.

Hierarchy

  • class \Drupal\rules\Event\UserLoginEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of UserLoginEvent

See also

rules_user_login()

1 file declares its use of UserLoginEvent
rules.module in ./rules.module
Hook implementations for the Rules module.

File

src/Event/UserLoginEvent.php, line 13

Namespace

Drupal\rules\Event
View source
class UserLoginEvent extends Event {
  const EVENT_NAME = 'rules_user_login';

  /**
   * The user account.
   *
   * @var \Drupal\user\UserInterface
   */
  public $account;

  /**
   * Constructs the object.
   *
   * @param \Drupal\user\UserInterface $account
   *   The account of the user logged in.
   */
  public function __construct(UserInterface $account) {
    $this->account = $account;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UserLoginEvent::$account public property The user account.
UserLoginEvent::EVENT_NAME constant
UserLoginEvent::__construct public function Constructs the object.