Replace calling FormState::setErrorByName() with an empty string with a new method

Created on 6 November 2023, 8 months ago
Updated 6 February 2024, 4 months ago

Problem/Motivation

In ๐Ÿ› Follow-up for #3382510: FormStateInterface::setErrorByName() needs not #name but a variation Closed: duplicate we use the ability of FormState::setErrorByName() to set a form level error with an empty string. This is a bit confusing because you are not setting a form error by name :).

Proposed resolution

Let's deprecate calling setErrorByName with an empty string and add a new method to do this.

Remaining tasks

User interface changes

None

API changes

TBD

Data model changes

None

Release notes snippet

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Formย  โ†’

Last updated 44 minutes ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024