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 doc block for NodeAccessControlHandlerInterface::writeGrants
is outdated. The method has only two parameters.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2534516.patch | 1.07 KB | webflo |
Comments
Comment #1
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #2
dawehnerPerfect
Comment #3
xjmComment #4
xjmSince this method basically just wraps
NodeGrantDatabaseStorageInterface::write()
, I double-checked that method too. That method still has these parameters. However,NodeGrantDatabaseStorageInterface::write()
does this:So since it is providing defaults, looks like this patch is correct. I also double-checked that the base implementation has the correct signature.
See also #2473021: Deprecate NodeAccessControlHandlerInterface::writeGrants() for removal in Drupal 9.0.x.
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x. Thanks @webflo for catching this!