Consider replacing hook_field_type_category_info with YML based plugin discovery

Created on 3 July 2023, over 1 year ago
Updated 21 July 2023, over 1 year ago

Problem/Motivation

In the Drupal 8 cycle we removed most info hooks and replaced them with plugins.

In Make field selection less overwhelming by introducing groups Fixed we added a new one hook_field_type_category_info

That issue represents a huge win for Drupal so we didn't want to slow progress debating whether it should be a hook or plugins.

This issue is to explore that further.

Steps to reproduce

Proposed resolution

See what the code looks like using YML discovery with an alter hook.
Add a default plugin implementation and change some of the logic in FieldStorageAddForm to it (e.g ->getWeight, ->getDescription, ->isDefault)
Consider bundling in 📌 Allow field_type_categories.yml entries to define asset libraries Fixed too

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Field UI 

Last updated 6 days ago

Created by

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024