Problem/Motivation

The field content model View has an operation column that includes 'delete' as an option. This option is too risky to have exposed here. If users want to delete a field, they should have to go to the content type specifically to do so.

Steps to reproduce

Proposed resolution

Duplicate the View field plugin config_views/src/Plugin/views/field/ConfigEntityOperations.php and create a new field plugin that is content model operations and remove the delete option. This will also set us up for adding the link to the all field display coming later in the road map.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

swirt created an issue. See original summary.

JayDarnell made their first commit to this issue’s fork.

jaydarnell’s picture

I'm working on a fix for this now @swirt

swirt’s picture

Status: Active » Fixed

For some reason the commits from @JayDarnell and I made are not showing in this issue. Here are direct links to the changes in the repo.
https://git.drupalcode.org/project/content_model_documentation/-/commit/...
https://git.drupalcode.org/project/content_model_documentation/-/commit/...

This issue is now closed.

Note, this only updates the Field list report on install of the module. It does not change anything for existing Views because we do not want to overwrite anyone's customization. If you have already installed this module but want to remove "Delete" from the view operations, then you will need to edit the view and add the field, "Operations without delete option". and perhaps remove the existing operations field.

Thank you JayDarnell for the great work on this.

swirt’s picture

Status: Fixed » Closed (fixed)

This will go out with release 1.0.6