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.
In #1499596: Introduce a basic entity form controller we unified the generation of entity forms but the actions associated to the various entity-specific forms still need to be unfied and the related code moved to the base implementation. We need some discussion about the preview action, which is available in a couple of entity types (comment and node) only: it might make sense to move preview code to the base implementation if it can be generalized enough.
Comments
Comment #1
tim.plunkettWould this also be the issue for
?
Comment #2
plachYes, definitely so.
Comment #3
andypostAlso most of core entities use confirmation of delete, so base controller should care about that
Comment #4
plachYes
Comment #5
andypostIt seem that we could close this in favor of #1839516: Introduce entity operation providers
Comment #6
BerdirThis happened in #2022875: Resolve difference between submitForm(), submit(), and save() in EntityFormController and #216064: Entity form "Delete" button triggers server-side + HTML5 form validation; change "Delete" button to a link.