Undefined #form_id in form alters

Created on 28 April 2022, over 2 years ago
Updated 10 January 2025, 11 days ago

In \Drupal\context\Reaction\Blocks\Form\BlockFormBase::buildForm called form alter before form fully build, so #form_id and #id absent, it cause errors in form alter of some modules, for example layout_builder_styles_form_alter and some others.

Proposed solution: fill #form_id and #id before call form alter.

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia kiseleva.t

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024