Problem/Motivation
The delete button on Reorder Children page is may be misleading.
Users may believe that hitting the Delete button this page will remove the entity as a child of the page in context, however it actually links to the delete page of the child.
It seems unlikely, and rarely useful that the delete button would actually be used for its current purpose.
As discussed externally, I proposed either removing the Delete button entirely, or making use of Drupals hook_entity_operation() to populate the Operations column.
Proposed resolution
Remove the Delete button from Reorder Children page.
Remaining tasks
- Implement.
- Update tests if required.
User interface changes
-1 button, leaving edit button (if user has permission to edit).
API changes
Nil
Data model changes
Nil
Issue fork entity_hierarchy-3283067
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
Comment #2
dpiA more complex option could be actually changing the Delete button to nullify the parent field value of the child entity.
Comment #4
dpiFailures seem unrelated: #3283072: Fix tests with MRs
Comment #7
larowlan