Defines an account interface which represents the current user.
Defines an object that has a user id, roles and can have session data. The interface is implemented both by the global session and the user entity.
Hierarchy
interface \Drupal\Core\Session\AccountInterface
Related topics
User accounts, permissions, and roles API for user accounts, access checking, roles, and permissions.
File
core/lib/Drupal/Core/Session/AccountInterface.php, line 13
Namespace
Drupal\Core\Session
Members