Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user_role_widget
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
user_role_widget
Commits
7d5b39b8
Commit
7d5b39b8
authored
1 year ago
by
sumit kumar
Browse files
Options
Downloads
Patches
Plain Diff
Entity autocomplete widget fix.
parent
ff674442
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#157395
passed with warnings
1 year ago
Stage: build
Stage: validate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldWidget/UserRoleAutocompleteWidget.php
+1
-2
1 addition, 2 deletions
src/Plugin/Field/FieldWidget/UserRoleAutocompleteWidget.php
with
1 addition
and
2 deletions
src/Plugin/Field/FieldWidget/UserRoleAutocompleteWidget.php
+
1
−
2
View file @
7d5b39b8
...
...
@@ -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
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment