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
As a goat, I want only the goatherders who can update the entity have access to the path admin/config/content/mollom/report/{entity_type}/{entity}
. According to the EntityAccessCheck doxygen, the value of _entity_access
needs to include the entity type which is of course impossible because it is dynamic.
Proposed resolution
Surprise! This already works, the doc comment is actually wrong. Behold the entity type called 'entity'.
Remaining tasks
Document it. No code changes are necessary because testAccessWithTypePlaceholder
even tests this, unless I misunderstood something which of course is not hard since I am just a goat.
Comment | File | Size | Author |
---|---|---|---|
#5 | Selection_318.png | 121.53 KB | chx |
#4 | 2778809_3.patch | 1.31 KB | chx |
Comments
Comment #2
chx CreditAttribution: chx at Smartsheet commentedComment #4
chx CreditAttribution: chx at Smartsheet commentedComment #5
chx CreditAttribution: chx at Smartsheet commentedComment #6
dawehnerThis is improving the documentation on a good way!
Comment #7
chx CreditAttribution: chx at Smartsheet commentedComment #8
catchCommitted/pushed to all three 8.x branches, thanks!
Comment #12
drumm