Allow field types to override the cardinality container

Created on 5 October 2023, about 1 year ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

Many modules are defining alter hooks to alter the cardinality form for a field type provided by the same module. There's pre-existing API to modify the field storage form from field types, but it hasn't been possible to modify the cardinality form through that because it's added to the form too late.

Proposed resolution

Add cardinality form to the field storage before the settings form in \Drupal\field_ui\Form\FieldStorageConfigEditForm::form to allow field types to override it without defining an alter hook.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Fixed

Version

11.0 🔥

Component
Field 

Last updated 1 day ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024