Problem/Motivation
The Display Builder delete confirmation for a Views display does not match the core Views delete page. It shows the raw instance ID instead of a label, and uses different wording for the title, button and breadcrumb.
|
Core Views delete |
Display Builder Views delete |
| Title |
Are you sure you want to delete the view Content? |
Do you want to delete views__frontpage__page_1? |
| Button |
Delete |
Confirm |
| Breadcrumb |
Delete View |
Confirm Deletion |
Steps to reproduce
- Enable
display_builder_views and enable Display Builder on a Views page display (e.g. frontpage / page_1).
- Go to
/admin/structure/views/display-builder and click Delete on that row.
- Compare with
/admin/structure/views/view/content/delete.


Proposed resolution
In ConfirmViewsBuilderDeleteForm, align with core:
getQuestion(): use the view and display labels instead of $this->builderId.
getConfirmText(): return "Delete".
- Route
_title in display_builder_views.routing.yml: match the page title instead of "Confirm deletion".
Remaining tasks
- Agree on the wording.
- MR.
User interface changes
The delete confirmation title, button and breadcrumb change. Screenshots of the current state are attached (core Views delete and Display Builder Views delete).
API changes
None.
Data model changes
None.
Comments
Comment #2
csakiistvanComment #3
csakiistvanComment #5
csakiistvanComment #6
csakiistvanPlease check the related MR, title should fix:
Comment #7
pdureau commentedThanks. Bugs (except some very specific exceptions) must be in the beta scope, and resolved before RC1.
This one is not a really a bug, it is more a task, but small enough to also be added to the scope.
Comment #8
pdureau commentedJust thinking aloud... Why not simply using the one from Views? So we already have the expected wording without adding any more code.
However, those 2 delete forms are not equivalent:
/admin/structure/views/view/{view}/delete/admin/structure/views/display-builder/{builder_id}/deleteentity.view.delete_formdisplay_builder_views.views.deleteDrupal\Core\Entity\EntityDeleteFormDrupal\display_builder_views\Form\ConfirmViewsBuilderDeleteFormSo, it raises another question, why
ConfirmViewsBuilderDeleteForm? Why deleting an instance here, knowing we don't delete manually any instance elsewhere? Knowing instance are automatically recreated? Can we just drop this form?Comment #9
csakiistvanI checked the code. The form is not a plain instance delete:
/admin/structure/views/display-builder(ViewsManagementController::getOperationLinks()).ConfirmViewsBuilderDeleteForm::submitForm()deletes the instance and clears the profile on the display (unsetDisplayBuilder()), so Display Builder is disabled for that display. The instance is not recreated until a profile is selected again.DisplayExtender::submitOptionsForm(), through a regular View save instead of writing the display config directly.So reusing the core Views delete form is not an option: it would delete the whole View.
Two options:
I would go with option 1. If you agree, I'll update the MR and the issue title.
Comment #10
pdureau commentedThis form is here from day one: https://git.drupalcode.org/project/display_builder/-/blob/70f9cfc44b1534...
And got its last real change in July 2025 #3534215: Implement WithDisplayBuilderInterface in Views
So, I believe it was a bit "forgotten" when we were doing the big structural changes (buildable plugins, instance entity, auto-generation of instances,
display_builder_uirevamp...).Let's see the opinion of Jean (@mogtofu33) when he will review the RTBC, but I believe it can be dropped now.
Yes, please, also update the issue title.
Comment #11
csakiistvanComment #12
csakiistvan@pdureau Updated MR !525 as agreed: dropped
ConfirmViewsBuilderDeleteForm, thedisplay_builder_views.views.deleteroute and the Delete operation in/admin/structure/views/display-builder. Disabling Display Builder on a display now goes through Change profile with no profile selected;docs/with-views.mdandagents/views.mdare updated accordingly. The display_builder_views kernel tests pass locally. Also updated the issue title.Comment #13
csakiistvanComment #14
pdureau commentedThanks. MR looks good to me.
Comment #16
mogtofu33 commentedThanks a lot!
Comment #19
pdureau commentedShipped in beta10 release.