Active
Project:
Entity Form/Display Field Label
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Plan
Assigned:
Reporter:
Created:
22 May 2026 at 07:47 UTC
Updated:
28 Oct 2026 at 08:34 UTC
Jump to comment: Most recent
The current hook_field_widget_complete_form_alter() implementation contains a hardcoded switch over a fixed set of field types (entity_reference, entity_reference_revisions, color_field_type, default). Adding support for a new field type or letting other modules contribute their own handling requires patching this module.
Issues with the current architecture:
||-separated) handling in one branch.Introduce a FieldLabelAlterer plugin type so per-field-type behaviour lives in dedicated plugin classes. The procedural hook becomes a thin dispatcher to the plugin manager.
Comments
Comment #2
nikita_ttComment #3
jannakha commentedHi @nikita_tt!
Great module! Let's make v3.x happen - let me know if you need help with testing