Code: $current_user = \Drupal::currentUser(); $roles = $current_user->getRoles(); // print_r( $roles ); Drupal Neuen Kommentar schreiben Ihr Name Betreff Comment Hilfe zum Textformat CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Leave this field blank
Neuen Kommentar schreiben