Is Current User is administrator How can I get the roles for the currently logged-in user? How can I check if the current user is an administrator? this is usually used when programming specific hook cases, like: hook_entity_view Drupal Support Drupal 10 Current User getRoles