Commit dd1350fb authored by alexpott's avatar alexpott

Issue #2378055 by Gábor Hojtsy: Reorganise config schema for...

Issue #2378055 by Gábor Hojtsy: Reorganise config schema for entity_form_display / entity_view_display
parent ca38ade6
# Schema for entity fields, specifying generic component data type information.
# Schema for the base of the view mode display format settings.
entity_field_view_display_base:
type: mapping
mapping:
type:
type: string
label: 'Format type machine name'
weight:
type: integer
label: 'Weight'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_view_display.third_party.[%key]
label:
type: string
label: 'Label setting machine name'
settings:
type: sequence
label: 'Settings'
# Schema for the base of the form mode display format settings.
entity_field_form_display_base:
type: mapping
mapping:
type:
type: string
label: 'Format type machine name'
weight:
type: integer
label: 'Weight'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_form_display.third_party.[%key]
settings:
type: sequence
label: 'Settings'
......@@ -68,9 +68,28 @@ core.entity_view_display.*.*.*:
label: 'View or form mode machine name'
content:
type: sequence
label: 'Field display formatters'
label: 'Field formatters'
sequence:
- type: entity_view_display.field.[type]
- type: mapping
label: 'Field formatter'
mapping:
type:
type: string
label: 'Format type machine name'
weight:
type: integer
label: 'Weight'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_view_display.third_party.[%key]
label:
type: string
label: 'Label setting machine name'
settings:
type: field.formatter.settings.[%parent.type]
label: 'Settings'
hidden:
type: sequence
label: 'Field display setting'
......@@ -105,9 +124,25 @@ core.entity_form_display.*.*.*:
label: 'Enabled'
content:
type: sequence
label: 'Field display formatters'
label: 'Field widgets'
sequence:
- type: entity_form_display.field.[type]
- type: mapping
label: 'Field widget'
mapping:
type:
type: string
label: 'Widget type machine name'
weight:
type: integer
label: 'Weight'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_form_display.third_party.[%key]
settings:
type: field.widget.settings.[%parent.type]
label: 'Settings'
hidden:
type: sequence
label: 'Hidden'
......@@ -121,145 +156,111 @@ core.entity_form_display.*.*.*:
- type: entity_form_display.third_party.[%key]
# Default schema for entity display field with undefined type.
entity_view_display.field.*:
type: entity_field_view_display_base
label: 'Entity display default'
field.formatter.settings.*:
type: mapping
# Default schema for entity form display field with undefined type.
entity_form_display.field.*:
type: entity_field_form_display_base
label: 'Entity form display default'
field.widget.settings.*:
type: mapping
entity_form_display.field.string_textfield:
type: entity_field_form_display_base
field.widget.settings.string_textfield:
type: mapping
label: 'Text field display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
size:
type: integer
label: 'Size of textfield'
placeholder:
type: label
label: 'Placeholder'
size:
type: integer
label: 'Size of textfield'
placeholder:
type: label
label: 'Placeholder'
entity_form_display.field.string_textarea:
type: entity_field_form_display_base
field.widget.settings.string_textarea:
type: mapping
label: 'Textarea display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
rows:
type: integer
label: 'Rows'
placeholder:
type: label
label: 'Placeholder'
rows:
type: integer
label: 'Rows'
placeholder:
type: label
label: 'Placeholder'
entity_form_display.field.email_default:
type: entity_field_form_display_base
field.widget.settings.email_default:
type: mapping
label: 'Email field display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
placeholder:
type: label
label: 'Placeholder'
placeholder:
type: label
label: 'Placeholder'
entity_form_display.field.datetime_timestamp:
type: entity_field_form_display_base
field.widget.settings.datetime_timestamp:
type: mapping
label: 'Datetime timestamp display format settings'
entity_form_display.field.boolean_checkbox:
type: entity_field_form_display_base
field.widget.settings.boolean_checkbox:
type: mapping
label: 'Boolean checkbox display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
display_label:
type: boolean
label: 'Display label'
display_label:
type: boolean
label: 'Display label'
entity_form_display.field.hidden:
type: entity_field_form_display_base
field.widget.settings.hidden:
type: mapping
label: '- Hidden - format settings'
entity_form_display.field.number:
type: entity_field_form_display_base
field.widget.settings.number:
type: mapping
label: 'Number default display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
placeholder:
type: label
label: 'Placeholder'
placeholder:
type: label
label: 'Placeholder'
entity_form_display.field.checkbox:
type: entity_field_form_display_base
field.widget.settings.checkbox:
type: mapping
label: 'Single on/off checkbox format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
display_label:
type: boolean
label: 'Use field label instead of the "On value" as label'
display_label:
type: boolean
label: 'Use field label instead of the "On value" as label'
entity_view_display.field.number_decimal:
type: entity_field_view_display_base
field.formatter.settings.number_decimal:
type: mapping
label: 'Number decimal display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
thousand_separator:
type: string
label: 'Thousand marker'
decimal_separator:
type: string
label: 'Decimal marker'
scale:
type: integer
label: 'Scale'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
thousand_separator:
type: string
label: 'Thousand marker'
decimal_separator:
type: string
label: 'Decimal marker'
scale:
type: integer
label: 'Scale'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
entity_view_display.field.number_integer:
type: entity_field_view_display_base
field.formatter.settings.number_integer:
type: mapping
label: 'Number interger display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
thousand_separator:
type: string
label: 'Thousand marker'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
thousand_separator:
type: string
label: 'Thousand marker'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
entity_view_display.field.number_unformatted:
type: entity_field_view_display_base
field.formatter.settings.number_unformatted:
type: mapping
label: 'Number unformatted display format settings'
entity_view_display.field.uri_link:
type: entity_field_view_display_base
field.formatter.settings.uri_link:
type: mapping
label: 'URI as link display format settings'
entity_view_display.field.timestamp_ago:
type: entity_field_view_display_base
field.formatter.settings.timestamp_ago:
type: mapping
label: 'Timestamp ago display format settings'
# Schema for the configuration files of the Comment module.
entity_view_display.field.comment_default:
type: entity_field_view_display_base
field.formatter.settings.comment_default:
type: mapping
label: 'Comment display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
pager_id:
type: integer
label: 'Pager ID'
pager_id:
type: integer
label: 'Pager ID'
entity_form_display.field.comment_default:
type: entity_field_form_display_base
field.widget.settings.comment_default:
type: mapping
label: 'Comment display format settings'
action.configuration.comment_publish_action:
......
......@@ -26,40 +26,32 @@ field.datetime.value:
- type: string
label: 'Value'
entity_view_display.field.datetime_default:
type: entity_field_view_display_base
field.formatter.settings.datetime_default:
type: mapping
label: 'Datetime default display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
format_type:
type: string
label: 'Date format'
format_type:
type: string
label: 'Date format'
entity_view_display.field.datetime_plain:
type: entity_field_view_display_base
field.formatter.settings.datetime_plain:
type: mapping
label: 'Datetime plain display format settings'
entity_form_display.field.datetime_datelist:
type: entity_field_form_display_base
field.widget.settings.datetime_datelist:
type: mapping
label: 'Datetime select list display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
increment:
type: integer
label: 'Time increments'
date_order:
type: string
label: 'Date part order'
time_type:
type: string
label: 'Time type'
increment:
type: integer
label: 'Time increments'
date_order:
type: string
label: 'Date part order'
time_type:
type: string
label: 'Time type'
entity_form_display.field.datetime_default:
type: entity_field_form_display_base
field.widget.settings.datetime_default:
type: mapping
label: 'Datetime default display format settings'
......@@ -37,75 +37,59 @@ entity_reference.default.handler_settings:
type: boolean
label: 'Create referenced entities if they don''t already exist'
entity_view_display.field.entity_reference_entity_view:
type: entity_field_view_display_base
field.formatter.settings.entity_reference_entity_view:
type: mapping
label: 'Entity reference rendered entity display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
view_mode:
type: string
label: 'View mode'
link:
type: boolean
label: 'Show links'
view_mode:
type: string
label: 'View mode'
link:
type: boolean
label: 'Show links'
entity_view_display.field.entity_reference_entity_id:
type: entity_field_view_display_base
field.formatter.settings.entity_reference_entity_id:
type: mapping
label: 'Entity reference entity ID display format settings'
entity_view_display.field.entity_reference_label:
type: entity_field_view_display_base
field.formatter.settings.entity_reference_label:
type: mapping
label: 'Entity reference label display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
link:
type: boolean
label: 'Link label to the referenced entity'
link:
type: boolean
label: 'Link label to the referenced entity'
entity_form_display.field.entity_reference_autocomplete_tags:
type: entity_field_form_display_base
field.widget.settings.entity_reference_autocomplete_tags:
type: mapping
label: 'Entity reference autocomplete (Tags style) display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
match_operator:
type: string
label: 'Autocomplete matching'
size:
type: integer
label: 'Size of textfield'
autocomplete_type:
type: string
label: 'Autocomplete type'
placeholder:
type: label
label: 'Placeholder'
match_operator:
type: string
label: 'Autocomplete matching'
size:
type: integer
label: 'Size of textfield'
autocomplete_type:
type: string
label: 'Autocomplete type'
placeholder:
type: label
label: 'Placeholder'
entity_form_display.field.entity_reference_autocomplete:
type: entity_field_form_display_base
field.widget.settings.entity_reference_autocomplete:
type: mapping
label: 'Entity reference autocomplete display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
match_operator:
type: string
label: 'Autocomplete matching'
size:
type: integer
label: 'Size of textfield'
autocomplete_type:
type: string
label: 'Autocomplete type'
placeholder:
type: label
label: 'Placeholder'
match_operator:
type: string
label: 'Autocomplete matching'
size:
type: integer
label: 'Size of textfield'
autocomplete_type:
type: string
label: 'Autocomplete type'
placeholder:
type: label
label: 'Placeholder'
entity_view_display.field.field_test_multiple:
type: entity_field_view_display_base
field.formatter.settings.field_test_multiple:
type: mapping
label: 'field_test display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
test_formatter_setting_multiple:
type: string
label: 'Test setting'
alter:
type: boolean
label: 'Test altering'
test_formatter_setting_multiple:
type: string
label: 'Test setting'
alter:
type: boolean
label: 'Test altering'
entity_form_display.field.test_field_widget_multiple:
type: entity_field_form_display_base
field.widget.settings.test_field_widget_multiple:
type: mapping
label: 'field_test display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
test_widget_setting_multiple:
type: string
label: 'Test setting'
test_widget_setting_multiple:
type: string
label: 'Test setting'
......@@ -67,30 +67,26 @@ field.file.field_settings:
type: boolean
label: 'Enable Description field'
entity_view_display.field.file_default:
type: entity_field_view_display_base
field.formatter.settings.file_default:
type: mapping
label: 'Generic file format settings'
entity_view_display.field.file_rss_enclosure:
type: entity_field_view_display_base
field.formatter.settings.file_rss_enclosure:
type: mapping
label: 'RSS enclosure format settings'
entity_view_display.field.file_table:
type: entity_field_view_display_base
field.formatter.settings.file_table:
type: mapping
label: 'Table of files format settings'
entity_view_display.field.file_url_plain:
type: entity_field_view_display_base
field.formatter.settings.file_url_plain:
type: mapping
label: 'URL to file format settings'
entity_form_display.field.file_generic:
type: entity_field_form_display_base
field.widget.settings.file_generic:
type: mapping
label: 'File format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
progress_indicator:
type: string
label: 'Progress indicator'
progress_indicator:
type: string
label: 'Progress indicator'
......@@ -140,32 +140,24 @@ field.image.value:
type: integer
label: 'Height'
entity_view_display.field.image:
type: entity_field_view_display_base
field.formatter.settings.image:
type: mapping
label: 'Image field display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
image_link:
type: string
label: 'Link image to'
image_style:
type: string
label: 'Image style'
image_link:
type: string
label: 'Link image to'
image_style:
type: string
label: 'Image style'
entity_form_display.field.image_image:
type: entity_field_form_display_base
field.widget.settings.image_image:
type: mapping
label: 'Image field display format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
progress_indicator:
type: string
label: 'Progress indicator'
preview_image_style:
type: string
label: 'Preview image style'
progress_indicator:
type: string
label: 'Progress indicator'
preview_image_style:
type: string
label: 'Preview image style'
# Schema for the configuration files of the Link module.
entity_view_display.field.link:
type: entity_field_view_display_base
field.formatter.settings.link:
type: mapping
label: 'Link format settings'
mapping:
settings:
type: mapping
label: 'Settings'
mapping:
trim_length:
type: integer
label: 'Trim link text length'
url_only:
type: boolean
label: 'URL only'
url_plain:
type: boolean
label: 'Show URL as plain text'
rel:
type: string
label: 'Add rel="nofollow" to links'
target:
type: string
label: 'Open link in new window'
trim_length:
type: integer
label: 'Trim link text length'
url_only:
type: boolean
label: 'URL only'
url_plain:
type: boolean
label: 'Show URL as plain text'
rel:
type: string
label: 'Add rel="nofollow" to links'
target:
type: string
label: 'Open link in new window'
entity_view_display.field.link_separate:
type: entity_field_view_display_base
field.formatter.settings.link_separate: