task: #3630912 Make field_ui an optional dependency of display_builder_entity_view

Production sites often uninstall field_ui once their displays are set up. Displays built with Display Builder now keep rendering and opening in the builder without it; only configuring them, which is field_ui's Manage display form, goes away.

  • Only register the entity view display edit form when field_ui is installed, since it extends field_ui's form.
  • Always build the display builder routes. Their base route belongs to the entity type's module, and the _field_ui option only drives core's EntityBundleRouteEnhancer. Without field_ui, access falls back to the bundle admin page's requirements.
  • Fall back to the bundle admin page for the display URL when Manage display does not exist, so the back button and the Instances "Edit" link do not throw RouteNotFoundException.

Closes #3630912

Merge request reports

Loading
Loading