Display the roles label instead of its machine name
1 unresolved thread
1 unresolved thread
Compare changes
@@ -12,7 +12,7 @@ namespace Drupal\apply_for_role\Form;
@@ -45,7 +45,7 @@ class ApplyForRoleApplicationForm extends FormBase{
@@ -120,6 +120,24 @@ class ApplyForRoleApplicationForm extends FormBase{
Try to do it the other way around, no need to load all roles. You already load just the configured role's machines names from config, loop over those and convert them there.