Add getEntity and getFieldName methods to form object to facilitate form alters

Created on 13 February 2024, 10 months ago
Updated 1 March 2024, 10 months ago

Motivation

I want to disable a widget based on the value of another field in the entity being edited. I wan to do it with a HOOK_form_editablefields_form_alter() but I have small context about what I'm altering since the field_name and the entity are protected properties of the form object.

Proposed resolution

Add getEntity and getFieldName getters to the Form class.

Remaining tasks

Code

User interface changes

API changes

Data model changes

โœจ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain rodrigoaguilera Barcelona

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