API page: https://api.drupal.org/api/drupal/core%21modules%21user%21src%21RoleInte...
/**
* Role ID for anonymous users; should match what's in the "role" table.
*/
const ANONYMOUS_ID = AccountInterface::ANONYMOUS_ROLE;
/**
* Role ID for authenticated users; should match what's in the "role" table.
*/
const AUTHENTICATED_ID = AccountInterface::AUTHENTICATED_ROLE;
Is there even still a role table on D8?
And at any rate, that would be an implementation detail. Better to say that this matches the user_role entity ID.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3114545-5.patch | 758 bytes | Deepthi kumari |
| #3 | 3114545-3.patch | 774 bytes | Deepthi kumari |
Comments
Comment #2
Deepthi kumari commentedComment #3
Deepthi kumari commentedApplied Patch. Please review.
Comment #4
joachim commentedThanks for taking a look at this!
I don't think we should mention tables at all, and the 'user__role' table is an entity field table that generally shouldn't be looked at.
This should say "should match the 'role' entity ID."
Comment #5
Deepthi kumari commentedChanged accordingly and applied the patch.
Comment #6
joachim commentedLooks good, thanks!
Comment #7
alexpottCommitted and pushed 2de1352f4a to 9.0.x and 8b9cefff88 to 8.9.x and aedf143eda to 8.8.x. Thanks!
Backported to 8.8.x as a docs fix.