reference_date-1.0.x-dev/config/schema/reference_date.schema.yml

config/schema/reference_date.schema.yml
# Field storage.
field.storage_settings.reference_date_combo:
  type: mapping
  label: 'Reference Date combo field storage settings.'
  mapping:
    target_type:
      type: string
      label: 'Type of item to reference'
    end_date:
      type: boolean
      label: 'Whether to show end date field'
    datetime_type:
      type: string
      label: 'Whether to store date or datetime'
# Field instance.
field.field_settings.reference_date_combo:
  type: mapping
  label: 'Reference Date combo field settings'
  mapping:
    handler:
      type: string
      label: 'Reference method'
    handler_settings:
      type: entity_reference_selection.[%parent.handler]
      label: 'Entity reference selection plugin settings'
# Default value.
field.value.reference_date_combo:
  type: mapping
  label: 'Default value'
  mapping:
    target_id:
      type: string
      label: 'Value'
    value:
      type: datetime
      label: Start Date
    end_value:
      type: datetime
      label: End Date
# Field widget.
field.widget.settings.reference_date_combo:
  type: mapping
  label: Example widget settings
  mapping:
    match_operator:
      type: string
      label: 'Autocomplete matching'
    match_limit:
      type: integer
      label: 'Maximum number of autocomplete suggestions.'
    size:
      type: integer
      label: 'Size of textfield'
    placeholder:
      type: label
      label: 'Placeholder'
# Field formatter.
field.formatter.settings.reference_date_combo_default:
  type: mapping
  label: 'Formatter settings'
  mapping:
    link:
      type: boolean
      label: 'Link label to the referenced entity'
    format_type:
      type: string
      label: 'Date format'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc