Fix the documentation for #empty_value on Drupal\Core\Render\Element\Select

Created on 21 May 2023, over 1 year ago
Updated 2 October 2023, over 1 year ago

Problem/Motivation

The documentation on the Drupal\Core\Render\Element\Select element doesn't warns that using #empty_value could lead to overwriting a value in #options.

See #1936636: Fix the documentation for #empty_value for more details.

Steps to reproduce

N/A

Proposed resolution

Add a warning in the comments about this situation.

Remaining tasks

User interface changes

API changes

None.

Data model changes

None.

Release notes snippet

None.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Form 

Last updated about 7 hours ago

Created by

🇪🇸Spain tunic Madrid

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