Rename $op operation in hook_node_grants[_alter]() and node_access_grants to $operation

Created on 4 April 2023, over 1 year ago
Updated 1 May 2023, over 1 year ago

Problem/Motivation

We try not to use abbreviation, so the $op argument should be renamed to $operation. Since this is a hook, it's just a documentation change, no BC concerns at all.

Proposed resolution

Renamed following places
- hook_node_grants() and hook_node_grants_alter() (with implementations)
- node_node_access()
- node_access_grants()
- \Drupal\node\NodeGrantDatabaseStorageInterface::alterQuery()

Remaining tasks

review/commit

User interface changes

no

API changes

no, only argument rename

Data model changes

no

Release notes snippet

📌 Task
Status

Fixed

Version

10.1 ✨

Component
Node system  →

Last updated 4 days ago

No maintainer
Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024