Use core methods for label/bundle keys, and add Media support

Created on 25 June 2021, over 4 years ago
Updated 4 September 2025, about 1 month ago

Problem/Motivation

The current hooks for node/term bundles can be condensed into a single hook using hook_form_alter() and an array of IDs to alter. Similarly the code in the validator can use core methods to be made generic without needing a switch(). This makes it easy to add support for new entity types.

Proposed resolution

Attached patch makes the form alter and field validator generic, and adds support for Media types.

Remaining tasks

Add an install file and update hook to convert old config schema re: taxonomy to new format - i.e. convert all unique_entity_title.settings.${vocab_name}_taxonomy_unique values to third-party settings on taxonomy.vocabulary.${vocab_name}

💬 Support request
Status

Needs work

Version

1.0

Component

Code

Created by

🇨🇦Canada bgilhome Victoria

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024