By narendrar on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.2.x
Introduced in version:
11.2.0
Issue links:
Description:
In order to not have a description in a form mode the description field must be set to NULL. Previously, an empty string was allowed.
Before
langcode: en
status: true
dependencies:
module:
- user
id: user.register
label: Register
description:''
targetEntityType: user
cache: true
This is core.entity_form_mode.user.register.yml before the change.
After
langcode: en
status: true
dependencies:
module:
- user
id: user.register
label: Register
description: null
targetEntityType: user
cache: true
This is core.entity_form_mode.user.register.yml after the change.
If this field is NULL, \Drupal\Core\Entity\EntityDisplayModeBase::getDescription() will return an empty string, for backwards compatibility.
Impacts:
Site builders, administrators, editors
Module developers
Comments
We have tested using NULL in
We have tested using NULL in this fails. For example
In RecipeConfigInstaller.php line 70:
There were validation errors in core.entity_form_mode.paragraph.preview:
- description: This value should not be blank.