AccountEvents.php 611 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Drupal\Core\Session;
  3. /**
  4. * Defines events for the account system.
  5. *
  6. * @see \Drupal\Core\Session\AccountSetEvent
  7. */
  8. final class AccountEvents {
  9. /**
  10. * Name of the event fired when the current user is set.
  11. *
  12. * This event allows modules to perform an action whenever the current user is
  13. * set. The event listener receives an \Drupal\Core\Session\AccountSetEvent
  14. * instance.
  15. *
  16. * @Event
  17. *
  18. * @see \Drupal\Core\Session\AccountSetEvent
  19. * @see \Drupal\Core\Session\AccountProxyInterface::setAccount()
  20. *
  21. * @var string
  22. */
  23. const SET_USER = 'account.set';
  24. }