1 # Base types provided by Drupal core.
3 # Read https://www.drupal.org/node/1905070 for more details about configuration
4 # schema, types and type resolution.
6 # Undefined type used by the system to assign to elements at any level where
7 # configuration schema is not defined. Using explicitly has the same effect as
8 # not defining schema, so there is no point in doing that.
11 class: '\Drupal\Core\Config\Schema\Undefined'
13 # Explicit type to use when no data typing is possible. Instead of using this
14 # type, we strongly suggest you use configuration structures that can be
15 # described with other structural elements of schema, and describe your schema
16 # with those elements.
19 class: '\Drupal\Core\Config\Schema\Ignore'
21 # Basic scalar data types from typed data.
24 class: '\Drupal\Core\TypedData\Plugin\DataType\BooleanData'
27 class: '\Drupal\Core\TypedData\Plugin\DataType\Email'
30 class: '\Drupal\Core\TypedData\Plugin\DataType\IntegerData'
33 class: '\Drupal\Core\TypedData\Plugin\DataType\Timestamp'
36 class: '\Drupal\Core\TypedData\Plugin\DataType\FloatData'
39 class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
42 class: '\Drupal\Core\TypedData\Plugin\DataType\Uri'
44 # Container data types for lists with known and unknown keys.
47 class: '\Drupal\Core\Config\Schema\Mapping'
48 definition_class: '\Drupal\Core\TypedData\MapDataDefinition'
51 class: '\Drupal\Core\Config\Schema\Sequence'
52 definition_class: '\Drupal\Core\Config\Schema\SequenceDataDefinition'
54 # Simple extended data types:
56 # Human readable string that must be plain text and editable with a text field.
62 # String containing plural variants, separated by EXT.
65 label: 'Plural variants'
67 # Internal Drupal path
72 # Human readable string that can contain multiple lines of text or HTML.
85 # PHP Date format string that is translatable.
90 translation context: 'PHP date format'
97 # Complex extended data types:
99 # Root of a configuration object.
106 label: 'Default configuration hash'
113 label: 'Language code'
115 type: _core_config_info
117 # Mail text with subject and body parts.
129 # Filter with module and status.
147 type: filter_settings.[%parent.id]
149 # System action configuration base.
150 action_configuration_default:
152 label: 'Action configuration'
161 label: 'Shortcut icon settings'
174 label: 'Use the default shortcut icon supplied by the theme'
177 label: 'Optional features'
179 comment_user_picture:
181 label: 'User pictures in comments'
182 comment_user_verification:
184 label: 'User verification status in comments'
187 label: 'Shortcut icon'
196 label: 'User pictures in posts'
202 label: 'Logo settings'
213 third_party_settings:
215 label: 'Third party settings'
217 type: theme_settings.third_party.[%key]
219 # Array of routes with route_name and route_params keys.
229 label: 'Route Params'
234 # Config dependencies.
235 config_dependencies_base:
240 label: 'Configuration entity dependencies'
245 label: 'Content entity dependencies'
250 label: 'Module dependencies'
255 label: 'Theme dependencies'
260 type: config_dependencies_base
261 label: 'Configuration dependencies'
264 type: config_dependencies_base
265 label: 'Enforced configuration dependencies'
275 label: 'Language code'
280 type: config_dependencies
281 label: 'Dependencies'
282 third_party_settings:
284 label: 'Third party settings'
286 type: '[%parent.%parent.%type].third_party.[%key]'
288 type: _core_config_info
295 label: 'Block settings'
305 label: 'Display title'
320 label: 'Context assignments'
338 label: 'Context assignments'
342 display_variant.plugin:
344 label: 'Display variant'
358 layout_plugin.settings:
360 label: 'Layout settings'
362 layout_plugin.settings.*:
363 type: layout_plugin.settings
365 base_entity_reference_field_settings:
370 label: 'Type of item to reference'
395 label: 'Required field'
398 label: 'Translatable'
401 label: 'Default values'
403 type: field.value.[%parent.%parent.field_type]
404 label: 'Default value'
405 default_value_callback:
407 label: 'Default value callback'
409 type: field.field_settings.[%parent.field_type]
414 core.base_field_override.*.*.*:
415 type: field_config_base
416 label: 'Base field bundle override'
432 type: core_date_format_pattern.[%parent.locked]
433 label: 'PHP date format'
435 # Unlocked date formats should use the translatable type.
436 core_date_format_pattern.0:
440 # Locked date formats are just used to transport the value.
441 core_date_format_pattern.1:
445 # Generic field settings schemas.
447 field.storage_settings.*:
451 field.field_settings.*:
457 label: 'Default value'
459 # Schema for the configuration of the String field type.
461 field.storage_settings.string:
463 label: 'String settings'
467 label: 'Maximum length'
470 label: 'Case sensitive'
473 label: 'Contains US ASCII characters only'
475 field.field_settings.string:
477 label: 'String settings'
481 label: 'Default value'
487 # Schema for the configuration of the String (long) field type.
489 field.storage_settings.string_long:
491 label: 'String (long) settings'
495 label: 'Case sensitive'
497 field.field_settings.string_long:
499 label: 'String (long) settings'
501 field.value.string_long:
503 label: 'Default value'
509 # Schema for the configuration of the URI field type.
511 field.storage_settings.uri:
512 type: field.storage_settings.string
513 label: 'URI settings'
517 label: 'Maximum length'
520 label: 'Case sensitive'
522 field.field_settings.uri:
524 label: 'URI settings'
528 label: 'Default value'
534 # Schema for the configuration of the Created field type.
536 field.storage_settings.created:
538 label: 'Created timestamp settings'
540 field.field_settings.created:
542 label: 'Created timestamp settings'
546 label: 'Default value'
552 # Schema for the configuration of the Changed field type.
554 field.storage_settings.changed:
556 label: 'Changed timestamp settings'
558 field.field_settings.changed:
560 label: 'Changed timestamp settings'
564 label: 'Default value'
570 # Schema for the configuration of the Entity reference field type.
572 field.storage_settings.entity_reference:
574 label: 'Entity reference field storage settings'
578 label: 'Type of item to reference'
580 field.field_settings.entity_reference:
582 label: 'Entity reference field settings'
586 label: 'Reference method'
588 type: entity_reference_selection.[%parent.handler]
589 label: 'Entity reference selection plugin settings'
591 field.value.entity_reference:
593 label: 'Default value'
601 # Schema for the configuration of the Boolean field type.
603 field.field_settings.boolean:
604 label: 'Boolean settings'
621 # Schema for the configuration of the Email field type.
623 field.storage_settings.email:
625 label: 'Email settings'
627 field.field_settings.email:
629 label: 'Email settings'
636 label: 'Default value'
642 # Schema for the configuration of the Integer field type.
644 field.storage_settings.integer:
646 label: 'Integer settings'
653 label: 'Database storage size'
655 field.field_settings.integer:
674 label: 'Default value'
680 # Schema for the configuration of the Decimal field type.
682 field.storage_settings.decimal:
684 label: 'Decimal settings'
693 field.field_settings.decimal:
695 label: 'Decimal settings'
712 label: 'Default value'
718 # Schema for the configuration of the Float field type.
720 field.storage_settings.float:
722 label: 'Float settings'
724 field.field_settings.float:
726 label: 'Float settings'
743 label: 'Default value'
749 # Schema for the configuration of the Timestamp field type.
751 field.value.timestamp:
753 label: 'Timestamp value'
759 # Text with a text format.
762 label: 'Text with text format'
763 # We declare the entire mapping of text and text format as translatable. This
764 # causes the entire mapping to be saved to the language overrides of the
765 # configuration. Storing only the (to be formatted) text could result in
766 # security problems in case the text format of the source text is changed.
772 # Mark the actual text as translatable (in addition to the entire mapping
773 # being marked as translatable) so that shipped configuration with
774 # formatted text can participate in the string translation system.
779 # The text format should not be translated as part of the string
780 # translation system, so this is not marked as translatable.
782 # Base schema for all entity reference selection handler schemas.
783 entity_reference_selection:
785 label: 'Entity reference selection handler settings'
789 label: 'Type of item to reference'
791 # Schema for all entity reference selection handlers that are not providing a
793 entity_reference_selection.*:
794 type: entity_reference_selection
796 # Schema for the entity reference 'default' selection handler settings.
797 entity_reference_selection.default:
798 type: entity_reference_selection
799 label: 'Default selection handler settings'
810 label: 'Sort settings'
817 label: 'Sort direction'
820 label: 'Create referenced entities if they don''t already exist'
823 label: 'Bundle assigned to the auto-created entities.'
825 # Schema for all entity reference 'default:*' selection handlers that are not
826 # providing a specific schema.
827 entity_reference_selection.default:*:
828 type: entity_reference_selection.default