Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21modules%21user%21tests%21src%21...
> \Drupal\user\RoleInterface $role: The ID of a user role to alter.
It's not an ID, since it's typehint on an interface. It's the role entity itself.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3068971-2.patch | 635 bytes | christinlepson |
Comments
Comment #2
christinlepson CreditAttribution: christinlepson at Mindgrub Technologies commentedWe can change
>> The ID of a user role to alter.
to
>> The user role entity to alter.
Comment #3
christinlepson CreditAttribution: christinlepson at Mindgrub Technologies commentedComment #4
joachim CreditAttribution: joachim as a volunteer commentedPerfect, thanks!
Comment #5
catchCommitted 64ee17e and pushed to 8.8.x. Thanks!
Comment #7
catch