Answers for "drupal user is admin drupal 8"

0

drupal 8 get user

$current_user = Drupal::currentUser();
$user = DrupaluserEntityUser::load($current_user->id());

// or just
$user = DrupaluserEntityUser::load(Drupal::currentUser()->id());
Posted by: Guest on October-04-2020

Browse Popular Code Answers by Language