Problem/Motivation

We're missing a schema for field.value.language which means we cannot have a default value for a LanguageItem field type that passes config schema checking

Steps to reproduce

Add a test that creates a LanguageItem field type with a default value when strict schema checking is on.
See the test fail config schema validation

Proposed resolution

Add a schema entry for field.value.language

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3516520

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

larowlan created an issue. See original summary.

larowlan’s picture

Status: Active » Needs review
penyaskito’s picture

Status: Needs review » Reviewed & tested by the community

Config schema looks good and MappingTest provides test coverage.

wim leers’s picture

Status: Reviewed & tested by the community » Needs work
larowlan’s picture

Status: Needs work » Needs review

Added a choices constraint to match type:langcode and added a comment regarding the lack of null support in type:langcode.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Looking good!

  • alexpott committed e9470a68 on 11.1.x
    Issue #3516520 by larowlan, wim leers, penyaskito: LanguageItem lacks a...

  • alexpott committed ec3617b3 on 11.2.x
    Issue #3516520 by larowlan, wim leers, penyaskito: LanguageItem lacks a...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed bc761e4a9d4 to 11.x and ec3617b375e to 11.2.x and e9470a68e61 to 11.1.x. Thanks!

  • alexpott committed bc761e4a on 11.x
    Issue #3516520 by larowlan, wim leers, penyaskito: LanguageItem lacks a...
alexpott’s picture

Version: 11.x-dev » 11.1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.