datetime_range.schema.yml
Same filename in other branches
File
-
core/
modules/ datetime_range/ config/ schema/ datetime_range.schema.yml
View source
- # Schema for the configuration files of the Datetime Range module.
-
- # Daterange field type.
- # This field type has no field instance settings, so no specific config schema type.
- # @see `type: field.field_settings.*`
- field.storage_settings.daterange:
- type: field.storage_settings.datetime
- label: 'Date range settings'
-
- field.value.daterange:
- type: mapping
- label: 'Default value'
- mapping:
- default_date_type:
- type: string
- label: 'Default start date type'
- default_date:
- type: string
- label: 'Default start date value'
- default_end_date_type:
- type: string
- label: 'Default end date type'
- default_end_date:
- type: string
- label: 'Default end date value'
-
- field.formatter.settings.daterange_default:
- type: field.formatter.settings.datetime_default
- label: 'Date range default display format settings'
- mapping:
- from_to:
- type: string
- label: 'Display'
- constraints:
- Choice:
- - both
- - start_date
- - end_date
- separator:
- type: label
- label: 'Separator'
- translation context: 'Date range separator'
-
- field.formatter.settings.daterange_plain:
- type: field.formatter.settings.datetime_plain
- label: 'Date range plain display format settings'
- mapping:
- from_to:
- type: string
- label: 'Display'
- constraints:
- Choice:
- - both
- - start_date
- - end_date
- separator:
- type: label
- label: 'Separator'
- translation context: 'Date range separator'
-
- field.formatter.settings.daterange_custom:
- type: field.formatter.settings.datetime_custom
- label: 'Date range custom display format settings'
- mapping:
- from_to:
- type: string
- label: 'Display'
- constraints:
- Choice:
- - both
- - start_date
- - end_date
- separator:
- type: label
- label: 'Separator'
- translation context: 'Date range separator'
-
- field.widget.settings.daterange_datelist:
- type: mapping
- label: 'Date range select list display format settings'
- mapping:
- increment:
- type: integer
- label: 'Time increments'
- date_order:
- type: string
- label: 'Date part order'
- time_type:
- type: string
- label: 'Time type'
-
- field.widget.settings.daterange_default:
- type: mapping
- label: 'Date range default display format settings'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.