Allow field_type_categories.yml entries to define asset libraries

Created on 3 July 2023, over 1 year ago
Updated 24 August 2023, over 1 year ago

Problem/Motivation

โœจ Make field selection less overwhelming by introducing groups Fixed Added hook_field_type_category_info to allow modules to define metadata about field type categories.
In doing so, we are putting the onus on modules implementing this hook to also implement a preprocess hook if they need libraries attached to theme an icon

Steps to reproduce

Eg. datetime_range_preprocess_form_element__new_storage_type

Proposed resolution

Allow the info definition to nominate libraries (like we do for layout plugins).
Automatically attach the libraries to the form on their behalf so they don't need to implement two hooks
Remove any such hooks (e.g. datetime range, comment, file, link, media, options, telephone, text)

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
Field UIย  โ†’

Last updated about 3 hours 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