API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Authentic...
> If no provider set an active user then the user is set to anonymous.
I don't think that's technically true: AFAICT this class returns NULL if no provider sets an active user. It's true that Drupal *overall* sets the user to anonymous, but that sentence gives the inaccurate impression that the code in this class will be doing that.
Not sure what to suggest for better wording though!
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | document-fix-3055374-19.patch | 739 bytes | meenakshig |
| #17 | document-fix-3055374-17.patch | 742 bytes | meenakshig |
| #10 | document-fix-3055374-10.patch | 783 bytes | onxze |
| #8 | document-fix-3055374-8.patch | 783 bytes | onxze |
| #2 | issues-3055374.patch | 783 bytes | christinlepson |
Comments
Comment #2
christinlepson commentedPatch to change
"If no provider set an active user then the user is set to anonymous."
to
"If no provider set an active user then NULL is returned, which results in the user being set to anonymous."
Comment #3
christinlepson commentedComment #4
Gnanasampandan Velmurgan commentedComment #6
onxze commentedI just tested this patch against 8.9.x-dev and I can verify that comment is changed to be more clearer and technically correct on file core/lib/Drupal/Core/Authentication/AuthenticationManager.php line 16.
Comment #7
onxze commentedComment #8
onxze commentedRenamed the file to match naming convention.
Comment #9
onxze commentedComment #10
onxze commentedUpdated the comment to be more clearer.
Comment #11
onxze commentedComment #12
antojoseComment #13
antojoseTested the new patch. Looks good to go in.
Comment #14
antojose.
Comment #15
alexpottComment #16
alexpottReturned by what? I'm not sure this is better wording.
No user is set to anonymous. It reality the active user remains the anonymous user.
Comment #17
meenakshig commentedFix the documentation as suggested.
Comment #18
longwaveThe word "as" is not required.
Comment #19
meenakshig commentedRemoved "as"
Comment #20
longwaveLooks good now, thanks.
Comment #21
alexpottCommitted and pushed 7732e9d794 to 9.0.x and 46da1a6982 to 8.9.x and f2854ac58e to 8.8.x. Thanks!
Backported to 8.8.x as it is a docs fix.
Updated for English grammar rules.