class AccountEvents
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents
- 10 core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents
- 11.x core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents
Defines events for the account system.
Hierarchy
- class \Drupal\Core\Session\AccountEvents
Expanded class hierarchy of AccountEvents
See also
\Drupal\Core\Session\AccountSetEvent
1 file declares its use of AccountEvents
- TimeZoneResolver.php in core/
modules/ system/ src/ TimeZoneResolver.php
File
-
core/
lib/ Drupal/ Core/ Session/ AccountEvents.php, line 10
Namespace
Drupal\Core\SessionView source
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';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
AccountEvents::SET_USER | constant | Name of the event fired when the current user is set. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.