Add missing "default_value" schema definition for the "value" property

Created on 20 March 2024, 9 months ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

Drupal has quite a wild obsession with schema definitions. Even if the "value" property is already properly defined in the "propertyDefinitions()" and "schema()" methods of "EntityReferenceDisplayItem", we still need to provide a "field.value" entry for the default_value schema definition, (see the core "link" module as an example: https://git.drupalcode.org/project/drupal/-/blame/11.x/core/modules/link...).

Otherwise, we get a schema error like this one:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for field.field.paragraph.attachments.field_nodeentityrefvm with the following errors: field.field.paragraph.attachments.field_nodeentityrefvm:default_value.0.value missing schema

Steps to reproduce

  1. Use the entity_reference_display field type in some shape or form
  2. Use to check for any schema errors

Proposed resolution

Add the missing schema definition.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

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