AccountEvents::SET_USER

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
  2. 10 core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
  3. 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\Session

Code

const SET_USER = 'account.set';

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