Entity form default ::afterBuild and ::processForm are not working correctly for subforms

Created on 4 September 2023, over 1 year ago
Updated 9 July 2024, 6 months ago

Problem/Motivation

\Drupal\Core\Entity\EntityForm::form maps by default a #process callback to ::processForm and a #after_build callback to ::afterBuild. This is not working correctly with subforms, because this points the subform after builder calls to the parent form instead of the subform.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Form 

Last updated 1 day ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024