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.
Problem/Motivation
The docblock description of the "neutral" function in core/lib/Access/AccessResult.php seems to be wrong. It references the fact that calling it means that access is "forbidden" ("(optional) The reason why access is forbidden") rather than "neutral"
Proposed resolution
Fix the comment.
Comment | File | Size | Author |
---|---|---|---|
#2 | fixes_accessresult_neutral-3068661-2.patch | 623 bytes | bomoko |
Comments
Comment #2
bomoko CreditAttribution: bomoko at Amazee Labs commentedComment #3
idebr CreditAttribution: idebr at ezCompany commentedSeems like a copy/paste error. I checked
\Drupal\Core\Access\AccessResult
for similar occurrences, but this is the only incorrect docblock.Comment #5
idebr CreditAttribution: idebr at ezCompany commentedFailed on #3055648: Frequent random fail in \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTest
Comment #8
catchCommitted/pushed to 8.8.x and cherry-picked to 8.7.x, thanks!