Commit 7e7c7154 authored by webchick's avatar webchick

Issue #2325999 by swentel: Move config schema for Core field types out of field.module .

parent 6a168b0d
......@@ -381,3 +381,189 @@ field_config_base:
core.base_field_override.*.*.*:
type: field_config_base
label: 'Base field bundle override'
# Schema for the String field type.
field.string.instance_settings:
type: sequence
label: 'String settings'
sequence:
- type: string
label: 'Setting'
field.string.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: string
label: 'Value'
# Schema for the configuration files of the Boolean field type.
field.boolean.settings:
type: mapping
label: 'Boolean settings'
mapping:
on_label:
type: string
label: 'On label'
off_label:
type: string
label: 'Off label'
field.boolean.instance_settings:
label: 'Boolean settings'
type: mapping
mapping: { }
field.boolean.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: integer
label: 'Value'
# Schema for the configuration files of the Email field type.
field.email.settings:
type: sequence
label: 'Email settings'
sequence:
- type: string
field.email.instance_settings:
type: sequence
label: 'Email settings'
sequence:
- type: string
label: 'Setting'
field.email.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: email
label: 'Value'
# Schema for configuration files of a numeric field types.
field.integer.settings:
type: sequence
label: 'Integer settings'
sequence:
- type: string
label: 'setting'
field.integer.instance_settings:
type: mapping
label: 'Integer'
mapping:
min:
type: integer
label: 'Minimum'
max:
type: integer
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.integer.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: integer
label: 'Value'
field.decimal.settings:
type: mapping
label: 'Decimal settings'
mapping:
precision:
type: integer
label: 'Precision'
scale:
type: integer
label: 'Scale'
field.decimal.instance_settings:
type: mapping
label: 'Decimal'
mapping:
min:
type: float
label: 'Minimum'
max:
type: float
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.decimal.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: float
label: 'Value'
field.float.settings:
type: sequence
label: 'Float settings'
sequence:
- type: string
label: 'setting'
field.float.instance_settings:
type: mapping
label: 'Float'
mapping:
min:
type: float
label: 'Minimum'
max:
type: float
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.float.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: float
label: 'Value'
......@@ -62,191 +62,6 @@ entity_form_display.field.hidden:
sequence:
- type: string
# Schema for the String field type.
field.string.instance_settings:
type: sequence
label: 'String settings'
sequence:
- type: string
label: 'Setting'
field.string.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: string
label: 'Value'
# Schema for the configuration files of the Boolean field type.
field.boolean.settings:
type: mapping
label: 'Boolean settings'
mapping:
on_label:
type: string
label: 'On label'
off_label:
type: string
label: 'Off label'
field.boolean.instance_settings:
label: 'Boolean settings'
type: mapping
mapping: { }
field.boolean.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: integer
label: 'Value'
# Schema for the configuration files of the Email field type.
field.email.settings:
type: sequence
label: 'Email settings'
sequence:
- type: string
field.email.instance_settings:
type: sequence
label: 'Email settings'
sequence:
- type: string
label: 'Setting'
field.email.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
value:
type: email
label: 'Value'
# Schema for configuration files of a numeric field types.
field.integer.settings:
type: sequence
label: 'Integer settings'
sequence:
- type: string
label: 'setting'
field.integer.instance_settings:
type: mapping
label: 'Integer'
mapping:
min:
type: integer
label: 'Minimum'
max:
type: integer
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.integer.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: integer
label: 'Value'
field.decimal.settings:
type: mapping
label: 'Decimal settings'
mapping:
precision:
type: integer
label: 'Precision'
scale:
type: integer
label: 'Scale'
field.decimal.instance_settings:
type: mapping
label: 'Decimal'
mapping:
min:
type: float
label: 'Minimum'
max:
type: float
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.decimal.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: float
label: 'Value'
field.float.settings:
type: sequence
label: 'Float settings'
sequence:
- type: string
label: 'setting'
field.float.instance_settings:
type: mapping
label: 'Float'
mapping:
min:
type: float
label: 'Minimum'
max:
type: float
label: 'Maximum'
prefix:
type: string
label: 'Prefix'
suffix:
type: string
label: 'Suffix'
field.float.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default value'
mapping:
value:
type: float
label: 'Value'
entity_view_display.field.number_decimal:
type: entity_field_view_display_base
label: 'Number decimal display format settings'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment