user

Customizing a user object

// Load the currently logged in user $user = \Drupal\user\Entity\User::...

Get the UID of the currently logged in user

\Drupal::currentUser() leverages the AccountProxy class, which is "a proxied implementation of AccountInterface". This means..
Subscribe to RSS - user