Make base fields configureable in form display

Created on 21 June 2023, over 1 year ago

Problem/Motivation

Base fields are not configurable in the "Manage form display" tab. Especially when adding multiple fields to menus, then ordering those fields can greatly improve the editorial experience.

As a side effect, this also enables field widgets for base field. Especially it allows to use Linkit for the menu links, which is a major improvement in UI and features (e.g. linking to Media entities). (Note: currently requires an extra patch for Linkit, but this patch is likely to be merged soon)

Proposed resolution

Use hook_entity_base_field_info_alter to add this setting:

  $fields['link_override']->setDisplayConfigurable('form', TRUE);
Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands falco010 🇳🇱 The Netherlands

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

Comments & Activities

Production build 0.71.5 2024