Update the FieldType category for clarity

Created on 30 November 2023, about 1 year ago
Updated 28 January 2024, 11 months ago

Problem/Motivation

This module enables a new FieldType category called "reference". This makes it difficult to discern from the core category for entity reference field types already labeled as "Reference".

Depending on use case, someone can pick the wrong option here and get a different presentation for forms and output than desired.

Proposed resolution

Change the category to something more clear, like "Dynamic Reference". Additionally, wrap the value in @Translate to be consistent with other field type declarations:

* @FieldType(
*   id = "dynamic_entity_reference",
*   label = @Translation("Dynamic entity reference"),
*   description = @Translation("An entity field containing a dynamic entity reference."),
*   category = @Translation("Dynamic entity reference"),
*   no_ui = FALSE,
*   list_class = "\Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList",
*   default_widget = "dynamic_entity_reference_default",
*   default_formatter = "dynamic_entity_reference_label"
* )
*/

The problem exists in both the 4.x and 3.x branches.

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevinquillen

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024