diff --git a/core/modules/entity_reference/config/schema/entity_reference.schema.yml b/core/modules/entity_reference/config/schema/entity_reference.schema.yml index eb9bd15..ba77390 100644 --- a/core/modules/entity_reference/config/schema/entity_reference.schema.yml +++ b/core/modules/entity_reference/config/schema/entity_reference.schema.yml @@ -16,28 +16,8 @@ field.entity_reference.instance_settings: type: string label: 'Reference method' handler_settings: - type: mapping + type: entity_reference.[%parent.handler].handler_settings label: 'Reference method settings' - mapping: - target_bundles: - type: sequence - label: 'types' - sequence: - - type: string - label: 'Type' - sort: - type: mapping - label: 'Sort settings' - mapping: - field: - type: string - label: 'Sort by' - direction: - type: string - label: 'Sort direction' - user_register_form: - type: boolean - label: 'Display on user registration form.' field.entity_reference.value: type: sequence @@ -49,3 +29,24 @@ field.entity_reference.value: target_id: type: integer label: 'Value' + +entity_reference.default.handler_settings: + type: mapping + label: 'View handler settings' + mapping: + target_bundles: + type: sequence + label: 'types' + sequence: + - type: string + label: 'Type' + sort: + type: mapping + label: 'Sort settings' + mapping: + field: + type: string + label: 'Sort by' + direction: + type: string + label: 'Sort direction' diff --git a/core/modules/views/config/schema/views.entity_reference.schema.yml b/core/modules/views/config/schema/views.entity_reference.schema.yml new file mode 100644 index 0000000..3067041 --- /dev/null +++ b/core/modules/views/config/schema/views.entity_reference.schema.yml @@ -0,0 +1,22 @@ +# Schema for the views entity reference selection plugins. + +entity_reference.views.handler_settings: + type: mapping + label: 'View handler settings' + mapping: + view: + type: mapping + label: 'View used to select the entities' + mapping: + view_name: + type: string + label: 'View name' + display_name: + type: string + label: 'Display name' + arguments: + type: sequence + label: 'View arguments' + sequence: + - type: string + label: 'Argument'