X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fconfig%2Fschema%2Fcore.data_types.schema.yml;fp=web%2Fcore%2Fconfig%2Fschema%2Fcore.data_types.schema.yml;h=a11eedcbc003cd81c4cd20ca2481681f26096fd9;hp=eeac1aea06306e512e3fc2b281f0853e4d4908dd;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/config/schema/core.data_types.schema.yml b/web/core/config/schema/core.data_types.schema.yml index eeac1aea0..a11eedcbc 100644 --- a/web/core/config/schema/core.data_types.schema.yml +++ b/web/core/config/schema/core.data_types.schema.yml @@ -46,7 +46,7 @@ mapping: sequence: label: Sequence class: '\Drupal\Core\Config\Schema\Sequence' - definition_class: '\Drupal\Core\TypedData\ListDataDefinition' + definition_class: '\Drupal\Core\Config\Schema\SequenceDataDefinition' # Simple extended data types: @@ -72,6 +72,13 @@ text: label: 'Text' translatable: true +# A UUID. +uuid: + type: string + label: 'UUID' + constraints: + Uuid: {} + # PHP Date format string that is translatable. date_format: type: string @@ -275,7 +282,7 @@ config_entity: type: mapping mapping: uuid: - type: string + type: uuid label: 'UUID' langcode: type: string @@ -336,8 +343,7 @@ condition.plugin: type: boolean label: 'Negate' uuid: - type: string - label: 'UUID' + type: uuid context_mapping: type: sequence label: 'Context assignments' @@ -358,8 +364,7 @@ display_variant.plugin: type: integer label: 'Weight' uuid: - type: string - label: 'UUID' + type: uuid layout_plugin.settings: type: mapping @@ -602,8 +607,7 @@ field.value.entity_reference: type: string label: 'Value' target_uuid: - type: string - label: 'Target UUID' + type: uuid # Schema for the configuration of the Boolean field type. @@ -753,6 +757,16 @@ field.value.float: type: float label: 'Value' +# Schema for the configuration of the Timestamp field type. + +field.value.timestamp: + type: mapping + label: 'Timestamp value' + mapping: + value: + type: timestamp + label: 'Value' + # Text with a text format. text_format: type: mapping @@ -776,11 +790,24 @@ text_format: # The text format should not be translated as part of the string # translation system, so this is not marked as translatable. -# Schema for the configuration of the Entity reference selection plugins. - +# Base schema for all entity reference selection handler schemas. entity_reference_selection: type: mapping - label: 'Entity reference selection plugin configuration' + label: 'Entity reference selection handler settings' + mapping: + target_type: + type: string + label: 'Type of item to reference' + +# Schema for all entity reference selection handlers that are not providing a +# specific schema. +entity_reference_selection.*: + type: entity_reference_selection + +# Schema for the entity reference 'default' selection handler settings. +entity_reference_selection.default: + type: entity_reference_selection + label: 'Default selection handler settings' mapping: target_bundles: type: sequence @@ -788,7 +815,7 @@ entity_reference_selection: nullable: true sequence: type: string - label: 'Type' + label: 'Bundle' sort: type: mapping label: 'Sort settings' @@ -806,5 +833,7 @@ entity_reference_selection: type: string label: 'Bundle assigned to the auto-created entities.' -entity_reference_selection.*: - type: entity_reference_selection +# Schema for all entity reference 'default:*' selection handlers that are not +# providing a specific schema. +entity_reference_selection.default:*: + type: entity_reference_selection.default