Commit a02a96df authored by webchick's avatar webchick

Issue #1983902 by vijaycs85, swentel, piyuesh23: Provide config schema to...

Issue #1983902 by vijaycs85, swentel, piyuesh23: Provide config schema to field types, widgets and storage in entity_reference module.
parent c049f3f1
# Schema for the configuration files of the Entity Reference module.
field.entity_reference.settings:
type: mapping
label: 'Settings'
mapping:
target_type:
type: string
label: 'Type of item to reference'
field.entity_reference.instance_settings:
type: mapping
label: 'Entity reference settings'
mapping:
handler:
type: string
label: 'Reference method'
handler_settings:
type: entity_reference.[%parent.handler].handler_settings
label: 'Reference method settings'
field.entity_reference.value:
type: sequence
label: 'Default value'
sequence:
- type: mapping
label: 'Default'
mapping:
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'
filter:
type: mapping
label: 'Filter settings'
mapping:
type:
type: string
label: 'Filter by'
role:
type: sequence
label: 'Restrict to the selected roles'
sequence:
- type: string
label: 'Role'
auto_create:
type: boolean
label: 'Create referenced entities if they don''t already exist'
# 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'
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