AccountEvents::SET_USER
Same name in other branches
- 9 core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
- 8.9.x core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
- 11.x core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
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.
See also
\Drupal\Core\Session\AccountSetEvent
\Drupal\Core\Session\AccountProxyInterface::setAccount()
Related topics
File
-
core/
lib/ Drupal/ Core/ Session/ AccountEvents.php, line 26
Class
- AccountEvents
- Defines events for the account system.
Namespace
Drupal\Core\SessionCode
const SET_USER = 'account.set';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.