You are here

constant AccountEvents::SET_USER in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Session/AccountEvents.php \Drupal\Core\Session\AccountEvents::SET_USER
  2. 9 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';