Skip to content
Snippets Groups Projects
Commit 7d5b39b8 authored by sumit kumar's avatar sumit kumar
Browse files

Entity autocomplete widget fix.

parent ff674442
Branches
Tags
No related merge requests found
Pipeline #157395 passed with warnings
......@@ -141,8 +141,7 @@ class UserRoleAutocompleteWidget extends WidgetBase {
'#default_value' => $this->getSetting('placeholder'),
'#description' => $this->t('Text that will be shown inside the field until a value is entered. This hint is usually a sample value or a brief description of the expected format.'),
];
// Get the available roles.
$roles = user_role_names(TRUE);
// Get the available roles.
$roles = Role::loadMultiple();
$options = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment