Need an array of user roles in your Drupal 8 site? Say goodbye to user_roles()
, say hello to user_role_names()
.
This function will return an associative array with the role id as the key and the role name as the value.
Continue reading “Drupal 8: Get an Array of User Roles”