getFormObject should use Entity's 'entity_browser' form class from annotation.

Created on 28 February 2024, 12 months ago

Problem/Motivation

I expected to be able to use hook_entity_type_alter to override the entity_form form class to use a custom one with: $et->setFormClass('entity_browser', MyClass::class) and indeed it changes the metadata but it is not used because the entity class uses its own property. One could override the class itself but probably using the form class is more idiomatic.

Steps to reproduce

As described above hook_entity_type_alter does not have any actual effect on the class used.

Proposed resolution

A MR is listed.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇪🇸Spain grota

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