Unverified Commit ec3617b3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3516520 by larowlan, wim leers, penyaskito: LanguageItem lacks a schema...

Issue #3516520 by larowlan, wim leers, penyaskito: LanguageItem lacks a schema for its default values

(cherry picked from commit bc761e4a)
parent 88dc606e
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -940,6 +940,18 @@ field.value.timestamp:
      type: timestamp
      label: 'Value'

field.value.language:
  type: mapping
  label: 'Language value'
  mapping:
    value:
      # Not this doesn't make use of type: langcode because that doesn't allow null values.
      type: string
      label: 'Language value'
      constraints:
        Choice:
          callback: 'Drupal\Core\TypedData\Plugin\DataType\LanguageReference::getAllValidLangcodes'

# Text with a text format.
text_format:
  type: mapping
+1 −0
Original line number Diff line number Diff line
@@ -377,6 +377,7 @@ public static function providerMappingInterpretation(): \Generator {
        'field.value.decimal' => ['value'],
        'field.value.float' => ['value'],
        'field.value.timestamp' => ['value'],
        'field.value.language' => ['value'],
        'field.value.comment' => [
          'status',
          'cid',