#entity_builders callback run again when calling $entityForm->buildEntity

Created on 19 May 2025, 1 day ago

Problem/Motivation

In combination with the token and menu_ui module the entity builder method "token_node_menu_link_submit" run twice. Once for the default validation/submit flow and once within the RequiredApiFormErrorHandler->handleFormErrors().

Steps to reproduce

Create a new node and save it. After save 2 menu content links are been created. One still linking to /node/{uuid}

Proposed resolution

When we clone the form_state we need to reset the temporary "entity_validated" value to false.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium p-neyens

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