123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832 |
- # Base types provided by Drupal core.
- # Read https://www.drupal.org/node/1905070 for more details about configuration
- # schema, types and type resolution.
- # Undefined type used by the system to assign to elements at any level where
- # configuration schema is not defined. Using explicitly has the same effect as
- # not defining schema, so there is no point in doing that.
- undefined:
- label: 'Undefined'
- class: '\Drupal\Core\Config\Schema\Undefined'
- # Explicit type to use when no data typing is possible. Instead of using this
- # type, we strongly suggest you use configuration structures that can be
- # described with other structural elements of schema, and describe your schema
- # with those elements.
- ignore:
- label: 'Ignore'
- class: '\Drupal\Core\Config\Schema\Ignore'
- # Basic scalar data types from typed data.
- boolean:
- label: 'Boolean'
- class: '\Drupal\Core\TypedData\Plugin\DataType\BooleanData'
- email:
- label: 'Email'
- class: '\Drupal\Core\TypedData\Plugin\DataType\Email'
- integer:
- label: 'Integer'
- class: '\Drupal\Core\TypedData\Plugin\DataType\IntegerData'
- timestamp:
- label: 'Timestamp'
- class: '\Drupal\Core\TypedData\Plugin\DataType\Timestamp'
- float:
- label: 'Float'
- class: '\Drupal\Core\TypedData\Plugin\DataType\FloatData'
- string:
- label: 'String'
- class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
- uri:
- label: 'Uri'
- class: '\Drupal\Core\TypedData\Plugin\DataType\Uri'
- # Container data types for lists with known and unknown keys.
- mapping:
- label: Mapping
- class: '\Drupal\Core\Config\Schema\Mapping'
- definition_class: '\Drupal\Core\TypedData\MapDataDefinition'
- sequence:
- label: Sequence
- class: '\Drupal\Core\Config\Schema\Sequence'
- definition_class: '\Drupal\Core\Config\Schema\SequenceDataDefinition'
- # Simple extended data types:
- # Human readable string that must be plain text and editable with a text field.
- label:
- type: string
- label: 'Label'
- translatable: true
- # String containing plural variants, separated by EXT.
- plural_label:
- type: label
- label: 'Plural variants'
- # Internal Drupal path
- path:
- type: string
- label: 'Path'
- # Human readable string that can contain multiple lines of text or HTML.
- text:
- type: string
- label: 'Text'
- translatable: true
- # A UUID.
- uuid:
- type: string
- label: 'UUID'
- constraints:
- Uuid: {}
- # PHP Date format string that is translatable.
- date_format:
- type: string
- label: 'Date format'
- translatable: true
- translation context: 'PHP date format'
- # HTML color value.
- color_hex:
- type: string
- label: 'Color'
- # Complex extended data types:
- # Root of a configuration object.
- _core_config_info:
- type: mapping
- mapping:
- default_config_hash:
- type: string
- label: 'Default configuration hash'
- config_object:
- type: mapping
- mapping:
- langcode:
- type: string
- label: 'Language code'
- _core:
- type: _core_config_info
- # Mail text with subject and body parts.
- mail:
- type: mapping
- label: 'Mail'
- mapping:
- subject:
- type: label
- label: 'Subject'
- body:
- type: text
- label: 'Body'
- # Filter with module and status.
- filter:
- type: mapping
- label: 'Filter'
- mapping:
- id:
- type: string
- label: 'ID'
- provider:
- type: string
- label: 'Provider'
- status:
- type: boolean
- label: 'Status'
- weight:
- type: integer
- label: 'Weight'
- settings:
- type: filter_settings.[%parent.id]
- # System action configuration base.
- action_configuration_default:
- type: sequence
- label: 'Action configuration'
- sequence:
- type: string
- theme_settings:
- type: config_object
- mapping:
- favicon:
- type: mapping
- label: 'Shortcut icon settings'
- mapping:
- mimetype:
- type: string
- label: 'MIME type'
- path:
- type: string
- label: 'Path'
- url:
- type: string
- label: 'URL'
- use_default:
- type: boolean
- label: 'Use the default shortcut icon supplied by the theme'
- features:
- type: mapping
- label: 'Optional features'
- mapping:
- comment_user_picture:
- type: boolean
- label: 'User pictures in comments'
- comment_user_verification:
- type: boolean
- label: 'User verification status in comments'
- favicon:
- type: boolean
- label: 'Shortcut icon'
- logo:
- type: boolean
- label: 'Logo'
- name:
- type: boolean
- label: 'Site name'
- node_user_picture:
- type: boolean
- label: 'User pictures in posts'
- slogan:
- type: boolean
- label: 'Site slogan'
- logo:
- type: mapping
- label: 'Logo settings'
- mapping:
- path:
- type: string
- label: 'Logo path'
- url:
- type: uri
- label: 'URL'
- use_default:
- type: boolean
- label: 'Use default'
- third_party_settings:
- type: sequence
- label: 'Third party settings'
- sequence:
- type: theme_settings.third_party.[%key]
- # Array of routes with route_name and route_params keys.
- route:
- type: mapping
- label: 'Route'
- mapping:
- route_name:
- type: string
- label: 'Route Name'
- route_params:
- type: sequence
- label: 'Route Params'
- sequence:
- type: string
- label: 'Param'
- # Config dependencies.
- config_dependencies_base:
- type: mapping
- mapping:
- config:
- type: sequence
- label: 'Configuration entity dependencies'
- sequence:
- type: string
- content:
- type: sequence
- label: 'Content entity dependencies'
- sequence:
- type: string
- module:
- type: sequence
- label: 'Module dependencies'
- sequence:
- type: string
- theme:
- type: sequence
- label: 'Theme dependencies'
- sequence:
- type: string
- config_dependencies:
- type: config_dependencies_base
- label: 'Configuration dependencies'
- mapping:
- enforced:
- type: config_dependencies_base
- label: 'Enforced configuration dependencies'
- config_entity:
- type: mapping
- mapping:
- uuid:
- type: uuid
- label: 'UUID'
- langcode:
- type: string
- label: 'Language code'
- status:
- type: boolean
- label: 'Status'
- dependencies:
- type: config_dependencies
- label: 'Dependencies'
- third_party_settings:
- type: sequence
- label: 'Third party settings'
- sequence:
- type: '[%parent.%parent.%type].third_party.[%key]'
- _core:
- type: _core_config_info
- block.settings.*:
- type: block_settings
- block_settings:
- type: mapping
- label: 'Block settings'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Description'
- label_display:
- type: string
- label: 'Display title'
- status:
- type: boolean
- label: 'Status'
- info:
- type: label
- label: 'Admin info'
- view_mode:
- type: string
- label: 'View mode'
- provider:
- type: string
- label: 'Provider'
- context_mapping:
- type: sequence
- label: 'Context assignments'
- sequence:
- type: string
- condition.plugin:
- type: mapping
- label: 'Condition'
- mapping:
- id:
- type: string
- label: 'ID'
- negate:
- type: boolean
- label: 'Negate'
- uuid:
- type: uuid
- context_mapping:
- type: sequence
- label: 'Context assignments'
- sequence:
- type: string
- display_variant.plugin:
- type: mapping
- label: 'Display variant'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- weight:
- type: integer
- label: 'Weight'
- uuid:
- type: uuid
- layout_plugin.settings:
- type: mapping
- label: 'Layout settings'
- mapping:
- label:
- type: label
- label: 'Label'
- layout_plugin.settings.*:
- type: layout_plugin.settings
- base_entity_reference_field_settings:
- type: mapping
- mapping:
- target_type:
- type: string
- label: 'Type of item to reference'
- field_config_base:
- type: config_entity
- mapping:
- id:
- type: string
- label: 'ID'
- field_name:
- type: string
- label: 'Field name'
- entity_type:
- type: string
- label: 'Entity type'
- bundle:
- type: string
- label: 'Bundle'
- label:
- type: label
- label: 'Label'
- description:
- type: text
- label: 'Help text'
- required:
- type: boolean
- label: 'Required field'
- translatable:
- type: boolean
- label: 'Translatable'
- default_value:
- type: sequence
- label: 'Default values'
- sequence:
- type: field.value.[%parent.%parent.field_type]
- label: 'Default value'
- default_value_callback:
- type: string
- label: 'Default value callback'
- settings:
- type: field.field_settings.[%parent.field_type]
- field_type:
- type: string
- label: 'Field type'
- core.base_field_override.*.*.*:
- type: field_config_base
- label: 'Base field bundle override'
- core.date_format.*:
- type: config_entity
- label: 'Date format'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- locked:
- type: boolean
- label: 'Locked'
- pattern:
- type: core_date_format_pattern.[%parent.locked]
- label: 'PHP date format'
- # Unlocked date formats should use the translatable type.
- core_date_format_pattern.0:
- type: date_format
- label: 'Date format'
- # Locked date formats are just used to transport the value.
- core_date_format_pattern.1:
- type: string
- label: 'Date format'
- # Generic field settings schemas.
- field.storage_settings.*:
- type: mapping
- label: 'Settings'
- field.field_settings.*:
- type: mapping
- label: 'Settings'
- field.value.*:
- type: mapping
- label: 'Default value'
- # Schema for the configuration of the String field type.
- field.storage_settings.string:
- type: mapping
- label: 'String settings'
- mapping:
- max_length:
- type: integer
- label: 'Maximum length'
- case_sensitive:
- type: boolean
- label: 'Case sensitive'
- is_ascii:
- type: boolean
- label: 'Contains US ASCII characters only'
- field.field_settings.string:
- type: mapping
- label: 'String settings'
- field.value.string:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: label
- label: 'Value'
- # Schema for the configuration of the String (long) field type.
- field.storage_settings.string_long:
- type: mapping
- label: 'String (long) settings'
- mapping:
- case_sensitive:
- type: boolean
- label: 'Case sensitive'
- field.field_settings.string_long:
- type: mapping
- label: 'String (long) settings'
- field.value.string_long:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: text
- label: 'Value'
- # Schema for the configuration of the URI field type.
- field.storage_settings.uri:
- type: field.storage_settings.string
- label: 'URI settings'
- mapping:
- max_length:
- type: integer
- label: 'Maximum length'
- case_sensitive:
- type: boolean
- label: 'Case sensitive'
- field.field_settings.uri:
- type: mapping
- label: 'URI settings'
- field.value.uri:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: string
- label: 'Value'
- # Schema for the configuration of the Created field type.
- field.storage_settings.created:
- type: mapping
- label: 'Created timestamp settings'
- field.field_settings.created:
- type: mapping
- label: 'Created timestamp settings'
- field.value.created:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: integer
- label: 'Value'
- # Schema for the configuration of the Changed field type.
- field.storage_settings.changed:
- type: mapping
- label: 'Changed timestamp settings'
- field.field_settings.changed:
- type: mapping
- label: 'Changed timestamp settings'
- field.value.changed:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: integer
- label: 'Value'
- # Schema for the configuration of the Entity reference field type.
- field.storage_settings.entity_reference:
- type: mapping
- label: 'Entity reference field storage settings'
- mapping:
- target_type:
- type: string
- label: 'Type of item to reference'
- field.field_settings.entity_reference:
- type: mapping
- label: 'Entity reference field settings'
- mapping:
- handler:
- type: string
- label: 'Reference method'
- handler_settings:
- type: entity_reference_selection.[%parent.handler]
- label: 'Entity reference selection plugin settings'
- field.value.entity_reference:
- type: mapping
- label: 'Default value'
- mapping:
- target_id:
- type: string
- label: 'Value'
- target_uuid:
- type: uuid
- # Schema for the configuration of the Boolean field type.
- field.field_settings.boolean:
- label: 'Boolean settings'
- type: mapping
- mapping:
- on_label:
- type: label
- label: 'On label'
- off_label:
- type: label
- label: 'Off label'
- field.value.boolean:
- type: mapping
- mapping:
- value:
- type: integer
- label: 'Value'
- # Schema for the configuration of the Email field type.
- field.storage_settings.email:
- type: mapping
- label: 'Email settings'
- field.field_settings.email:
- type: mapping
- label: 'Email settings'
- sequence:
- type: string
- label: 'Setting'
- field.value.email:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: email
- label: 'Value'
- # Schema for the configuration of the Integer field type.
- field.storage_settings.integer:
- type: mapping
- label: 'Integer settings'
- mapping:
- unsigned:
- type: boolean
- label: 'Unsigned'
- size:
- type: string
- label: 'Database storage size'
- field.field_settings.integer:
- type: mapping
- label: 'Integer'
- mapping:
- min:
- type: integer
- label: 'Minimum'
- max:
- type: integer
- label: 'Maximum'
- prefix:
- type: label
- label: 'Prefix'
- suffix:
- type: label
- label: 'Suffix'
- field.value.integer:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: integer
- label: 'Value'
- # Schema for the configuration of the Decimal field type.
- field.storage_settings.decimal:
- type: mapping
- label: 'Decimal settings'
- mapping:
- precision:
- type: integer
- label: 'Precision'
- scale:
- type: integer
- label: 'Scale'
- field.field_settings.decimal:
- type: mapping
- label: 'Decimal settings'
- mapping:
- min:
- type: float
- label: 'Minimum'
- max:
- type: float
- label: 'Maximum'
- prefix:
- type: label
- label: 'Prefix'
- suffix:
- type: label
- label: 'Suffix'
- field.value.decimal:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- type: float
- label: 'Value'
- # Schema for the configuration of the Float field type.
- field.storage_settings.float:
- type: mapping
- label: 'Float settings'
- field.field_settings.float:
- type: mapping
- label: 'Float settings'
- mapping:
- min:
- type: float
- label: 'Minimum'
- max:
- type: float
- label: 'Maximum'
- prefix:
- type: label
- label: 'Prefix'
- suffix:
- type: label
- label: 'Suffix'
- field.value.float:
- type: mapping
- label: 'Default value'
- mapping:
- value:
- 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
- label: 'Text with text format'
- # We declare the entire mapping of text and text format as translatable. This
- # causes the entire mapping to be saved to the language overrides of the
- # configuration. Storing only the (to be formatted) text could result in
- # security problems in case the text format of the source text is changed.
- translatable: true
- mapping:
- value:
- type: text
- label: 'Text'
- # Mark the actual text as translatable (in addition to the entire mapping
- # being marked as translatable) so that shipped configuration with
- # formatted text can participate in the string translation system.
- translatable: true
- format:
- type: string
- label: 'Text format'
- # The text format should not be translated as part of the string
- # translation system, so this is not marked as translatable.
- # Base schema for all entity reference selection handler schemas.
- entity_reference_selection:
- type: mapping
- 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
- label: 'types'
- nullable: true
- sequence:
- type: string
- label: 'Bundle'
- sort:
- type: mapping
- label: 'Sort settings'
- mapping:
- field:
- type: string
- label: 'Sort by'
- direction:
- type: string
- label: 'Sort direction'
- auto_create:
- type: boolean
- label: 'Create referenced entities if they don''t already exist'
- auto_create_bundle:
- type: string
- label: 'Bundle assigned to the auto-created entities.'
- # Schema for all entity reference 'default:*' selection handlers that are not
- # providing a specific schema.
- entity_reference_selection.default:*:
- type: entity_reference_selection.default
|