Problem/Motivation

The Core security fix released today could be mitigated by uninstalling field_ui in production: https://www.drupal.org/sa-core-2026-014

However, display_builder_entity_view has a dependency to field_ui which:

  • makes sense when building an enttiy view display, because field_ui provide the builder route and one of the expected permissions
  • is not relevant once the entity view display is built because the content is still rendered as expected without field_ui

Proposed resolution

Let's see if we can quickly make field_ui a soft dependency so we can uninstall that in production.

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

yannickoo created an issue. See original summary.

pdureau’s picture

Issue summary: View changes

Quick review of the MR:

  • Are we changing too much here? Let's keep the existing logic as much as possible. It is OK to not being able to build a display without field_ui, we just want the display to still be rendered without this module. So why not just removing the dependency from display_builder_entity_view.info.yml ? It will also help us to avoid test faisl in pipeline.
  • agents/entity-view.md must also bee updated ?
pdureau’s picture

Status: Active » Needs work
yannickoo’s picture

I have provided an initial MR so we can see if we can get of this hard dependency and make it a soft one 💨

yannickoo’s picture

Status: Needs work » Needs review
StatusFileSize
new953.56 KB

I did more testing of this and can confirm that we are already guiding at the right places.

The only thing we also need to fix is that even without having Field UI module installed we should be able to see the instance list on /admin/structure/display-builder/instances. If we don't guard here properly you would see something like:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "display_builder_entity_view.node" does not exist.

The new code in InstanceListBuilder.php ensures that we are not rendering dropbuttons for the instances you couldn't manage due to missing Field UI module:


I also had to add a field_ui dependency to some test modules otherwise they would fail.

csakiistvan’s picture

Assigned: Unassigned » csakiistvan
csakiistvan’s picture

Assigned: csakiistvan » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new228.42 KB
new198.98 KB

✅ Tested and works — on current 1.0.x, drush pmu field_ui also uninstalled display_builder_entity_view; after applying MR !475 and rebuilding caches, the same command uninstalls only field_ui and display_builder_entity_view stays enabled. Field UI can now be removed in production without losing the module.

pdureau’s picture

Assigned: Unassigned » mogtofu33
Issue tags: +display_builder-1.0.0-beta

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

mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Reviewed & tested by the community » Fixed

Rebased and merged, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

pdureau’s picture

Status: Fixed » Closed (fixed)

Shipped in beta10 release.