document the reason for 'edit' vs. 'update' operations in field and entity access operation name

Created on 18 April 2022, over 2 years ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

Update/edit operations on fields use edit for the $operation value, but entities use update. This is confusing and leads to issues like #3260920: Contact's MessageEntityTest wrongly uses 'edit' access operation on entities instead of 'update' and are difficult/impossible to statically analyze and find.

Steps to reproduce

Try and remember if the operation is update or edit, depending on your context.

Proposed resolution

Per #5 update documentation in core/lib/Drupal/Core/Entity/EntityAccessControlHandlerInterface.php

Remaining tasks

Debate it for a few years?

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.1

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇺🇸United States bradjones1 Digital Nomad Life

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024