Skip to content

Instantly share code, notes, and snippets.

@vijaycs85
Created December 11, 2013 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaycs85/7917782 to your computer and use it in GitHub Desktop.
Save vijaycs85/7917782 to your computer and use it in GitHub Desktop.
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'
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'
# From views/config/schema/views.entity_refence.schema.yml
# 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment