"Save and edit layout" button added to any entity forms (except "delete" form)

Created on 6 February 2024, 5 months ago

Problem/Motivation

✨ Add "Save and Edit Layout" button to entity edit pages Fixed introduced the Save and edit layout button on create and edit entity forms. Unfortunately the if-condition that checks for an instance of ContentEntityFormInterface results in the button being added to any entity form implementing that interface (except the delete form of course)

Steps to reproduce

  • Install layout_builder_save_and_edit module
  • Build a custom entity form class that implements ContentEntityFormInterface or extends ContentEntityForm class for an entity type/bundle that has layout builder with overrides enabled
  • Create a route that displays that form -> see the Save and edit layout button being added

Proposed resolution

Remaining tasks

  • Create a patch/MR that fixes this issue

User interface changes

  • Save and edit layout button will only be added to relevant forms anymore

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany hctom

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024