AccountEvents.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Session/AccountEvents.php
  2. 8.9.x core/lib/Drupal/Core/Session/AccountEvents.php
  3. 10 core/lib/Drupal/Core/Session/AccountEvents.php

Namespace

Drupal\Core\Session

File

core/lib/Drupal/Core/Session/AccountEvents.php

View source
<?php

namespace Drupal\Core\Session;


/**
 * Defines events for the account system.
 *
 * @see \Drupal\Core\Session\AccountSetEvent
 */
final class AccountEvents {
    
    /**
     * Name of the event fired when the current user is set.
     *
     * This event allows modules to perform an action whenever the current user is
     * set. The event listener receives an \Drupal\Core\Session\AccountSetEvent
     * instance.
     *
     * @Event
     *
     * @see \Drupal\Core\Session\AccountSetEvent
     * @see \Drupal\Core\Session\AccountProxyInterface::setAccount()
     *
     * @var string
     */
    const SET_USER = 'account.set';

}

Classes

Title Deprecated Summary
AccountEvents Defines events for the account system.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.