drupal/core/config/schema/core.entity.schema.yml

274 lines
6.4 KiB
YAML
Raw Normal View History

# Schema for Configuration files of the entity module.
core.entity_view_mode.*.*:
type: mapping
label: 'Entity view mode settings'
mapping:
id:
type: string
label: 'ID'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'The human-readable name of the view mode'
targetEntityType:
type: string
label: 'Target entity type'
status:
type: boolean
label: 'Enabled'
cache:
type: boolean
label: 'Cached'
langcode:
type: string
label: 'Default language'
dependencies:
type: config_dependencies
label: 'Dependencies'
core.entity_form_mode.*.*:
type: config_entity
label: 'Entity form mode settings'
mapping:
id:
type: string
label: 'ID'
label:
type: label
label: 'Label'
targetEntityType:
type: string
label: 'Target entity type'
cache:
type: boolean
label: 'Cache'
# Overview configuration information for view mode or form mode displays.
core.entity_view_display.*.*.*:
type: config_entity
label: 'Entity display'
mapping:
id:
type: string
label: 'ID'
label:
type: label
label: 'Label'
targetEntityType:
type: string
label: 'Target entity type'
bundle:
type: string
label: 'Bundle'
mode:
type: string
label: 'View or form mode machine name'
content:
type: sequence
label: 'Field formatters'
sequence:
- 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'
sequence:
- type: boolean
label: 'Value'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_view_display.third_party.[%key]
# Overview configuration information for form mode displays.
core.entity_form_display.*.*.*:
type: config_entity
label: 'Entity form display'
mapping:
id:
type: string
label: 'ID'
targetEntityType:
type: string
label: 'Target entity type'
bundle:
type: string
label: 'Bundle'
mode:
type: string
label: 'View or form mode machine name'
status:
type: boolean
label: 'Enabled'
content:
type: sequence
label: 'Field widgets'
sequence:
- 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'
sequence:
- type: boolean
label: 'Component'
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
- type: entity_form_display.third_party.[%key]
# Default schema for entity display field with undefined type.
field.formatter.settings.*:
type: mapping
# Default schema for entity form display field with undefined type.
field.widget.settings.*:
type: mapping
field.widget.settings.string_textfield:
type: mapping
label: 'Text field display format settings'
mapping:
size:
type: integer
label: 'Size of textfield'
placeholder:
type: label
label: 'Placeholder'
field.widget.settings.string_textarea:
type: mapping
label: 'Textarea display format settings'
mapping:
rows:
type: integer
label: 'Rows'
placeholder:
type: label
label: 'Placeholder'
field.widget.settings.email_default:
type: mapping
label: 'Email field display format settings'
mapping:
placeholder:
type: label
label: 'Placeholder'
field.widget.settings.datetime_timestamp:
type: mapping
label: 'Datetime timestamp display format settings'
field.widget.settings.boolean_checkbox:
type: mapping
label: 'Boolean checkbox display format settings'
mapping:
display_label:
type: boolean
label: 'Display label'
field.widget.settings.hidden:
type: mapping
label: '- Hidden - format settings'
field.widget.settings.number:
type: mapping
label: 'Number default display format settings'
mapping:
placeholder:
type: label
label: 'Placeholder'
field.widget.settings.checkbox:
type: mapping
label: 'Single on/off checkbox format settings'
mapping:
display_label:
type: boolean
label: 'Use field label instead of the "On value" as label'
field.formatter.settings.string:
type: mapping
mapping:
link_to_entity:
type: boolean
label: 'Link to the entity'
field.formatter.settings.number_decimal:
type: mapping
label: 'Number decimal display format 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.'
field.formatter.settings.number_integer:
type: mapping
label: 'Number interger display format settings'
mapping:
thousand_separator:
type: string
label: 'Thousand marker'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
field.formatter.settings.number_unformatted:
type: mapping
label: 'Number unformatted display format settings'
field.formatter.settings.uri_link:
type: mapping
label: 'URI as link display format settings'
field.formatter.settings.timestamp_ago:
type: mapping
label: 'Timestamp ago display format settings'