datafield-1.x-dev/config/schema/datafile.schema.yml

config/schema/datafile.schema.yml
# Storage schema.
field.storage_settings.data_field:
  type: mapping
  label: Storage data field settings
  mapping:
    storage:
      type: sequence
      label: Data Field storage settings
      sequence:
        type: datafield_storage_subfield_settings
        label: storage
    columns:
      type: sequence
      label: Data Field columns settings
      sequence:
        type: datafield_storage_subfield_settings
        label: columns

datafield_storage_subfield_settings:
  type: mapping
  label: Storage subfield settings
  mapping:
    name:
      type: string
      label: Name
    type:
      type: string
      label: Type
    max_length:
      type: integer
      label: Max length
    size:
      type: string
      label: Date type
    precision:
      type: integer
      label: Precision
    unsigned:
      type: boolean
      label: Unsigned
    scale:
      type: integer
      label: Scale
    datetime_type:
      type: string
      label: Date type

field.field_settings.data_field:
  type: mapping
  label: Data field settings
  mapping:
    field_settings:
      type: sequence
      label: Field settings
      sequence:
        type: data_field_subfield_settings
        label: Data field settings

data_field_subfield_settings:
  type: mapping
  label: Data subfield settings
  mapping:
    label:
      type: label
      label: Label
    list:
      type: boolean
      label: Limit allowed values
    allowed_values:
      type: sequence
      label: Allowed values
      sequence:
        type: mapping
        mapping:
          label:
            type: label
            label: Label
          value:
            # This actually can be some other scalar type.
            type: string
            label: Value
    max:
      type: integer
      label: Maximal value
    min:
      type: integer
      label: Minimal value
    required:
      type: boolean
      label: Required
    on_label:
      type: string
      label: On label
    off_label:
      type: string
      label: Off label
    entity_reference_type:
      type: string
      label: Entity reference
    target_bundles:
      type: string
      label: Target bundle
    view_arguments:
      type: string
      label: View arguments

# Widget schema.
field.widget.settings.data_field_table_widget:
  type: field.widget.settings.data_field_widget
  label: Data Field table widget settings

field.widget.settings.data_field_widget:
  type: mapping
  label: Data Field widget settings
  mapping:
    inline:
      type: boolean
      label: Display as inline element
    field_reference:
      type: string
      label: Reference subfield
    widget_settings:
      type: sequence
      label: Widget settings
      sequence:
        type: data_field_widget_settings
        label: Widget subfield settings

data_field_widget_settings:
  type: mapping
  label: Widget subfield settings
  mapping:
    type:
      type: string
      label: Type
    label_display:
      type: string
      label: Label display
    size:
      type: integer
      label: Size
    placeholder:
      type: string
      label: Placeholder
    label:
      type: string
      label: Label
    field_display:
      type: string
      label: Field display
    entity_browser:
      type: string
      label: Entity browser
    preview_image_style:
      type: string
      label: Preview image style
    weight:
      type: integer
      label: weight
    cols:
      type: integer
      label: Cols
    rows:
      type: integer
      label: Rows
    limit:
      type: integer
      label: Limit
    step:
      type: string
      label: Step
    autocomplete:
      type: boolean
      label: Autocomplete search widget
    fill:
      type: boolean
      label: Fill search widget
    target_type:
      type: string
      label: Target type

# Formatters schema.
field.formatter.settings.data_field_unformatted_list:
  type: data_field_formatter_settings
  label: Formatter data field unordered list

field.formatter.settings.data_field_html_list:
  type: mapping
  label: Formatter data field ordered list
  mapping:
    list_type:
      type: string
      label: List type

field.formatter.settings.data_field_details:
  type: mapping
  label: Formatter data field details
  mapping:
    open:
      type: boolean
      label: Open

field.formatter.settings.data_field_table_formatter:
  type: mapping
  label: Formatter data field table
  mapping:
    number_column:
      type: boolean
      label: Number column
    number_column_label:
      type: string
      label: Number column label
    direction:
      type: string
      label: Direction
    mode:
      type: string
      label: Mode
    caption:
      type: string
      label: Caption
    footer_text:
      type: string
      label: Footer text
    datatables_options:
      type: sequence
      label: Datatables options
      sequence:
        type: ignore
    bootstrap_table_options:
      type: sequence
      label: Bootstrap table options
      sequence:
        type: ignore
    formatter_settings:
      type: sequence
      label: Formatter subfield values
      sequence:
        type: data_field_formatter_settings

field.formatter.settings.data_field_json_export:
  type: mapping
  label: Data field json formatter settings
  mapping:
    recursion_level:
      type: integer
      label: Recursion max level

field.formatter.settings.data_field_chart:
  type: mapping
  label: Formatter data field chart
  mapping:
    mode:
      type: string
      label: Chart mode
    chart_type:
      type: string
      label: Chart type
    chart_width:
      type: integer
      label: Width
    chart_height:
      type: integer
      label: Height

data_field_formatter_settings:
  type: mapping
  label: Formatter settings
  mapping:
    inline:
      type: boolean
      label: Display as inline element
    formatter_settings:
      type: sequence
      label: formatter settings
      sequence:
        type: data_field_formatter_subfield_settings
        label: Formatter subfield settings
    ajax:
      type: boolean
      label: Loading ajax
    custom_class:
      type: string
      label: custom class
    line_operations:
      type: boolean
      label: Enable line operations
    form_format_table:
      type: boolean
      label: Format as table in form

data_field_formatter_subfield_settings:
  type: mapping
  label: Formatter subfield settings
  mapping:
    format_type:
      type: string
      label: Format type
    format:
      type: string
      label: Format type
    format_custom_false:
      type: string
      label: Format type
    format_custom_true:
      type: string
      label: Format type
    link:
      type: boolean
      label: Link
    hidden:
      type: boolean
      label: Hidden
    key:
      type: boolean
      label: Key
    decimal_separator:
      type: string
      label: Decimal marker
    thousand_separator:
      type: string
      label: Thousand marker
    scale:
      type: integer
      label: Scale
    prefix_suffix:
      type: boolean
      label: Prefix suffix
    view_mode:
      type: string
      label: View mode
    file_download_path:
      type: boolean
      label: File download path
    use_description_as_link_text:
      type: boolean
      label: Use description as link text
    wrap:
      type: string
      label: Wrap
    separator:
      type: string
      label: Separator
    reverse:
      type: boolean
      label: Reverse
    image_style:
      type: string
      label: Image style
    image_link:
      type: string
      label: Image link
    trim_length:
      type: integer
      label: Trim length
    twig_template:
      type: string
      label: Twig template
    future_format:
      type: string
      label: Future date format
    past_format:
      type: string
      label: Past date format
    granularity:
      type: integer
      label: Granularity

# Default value schema.
field.value.data_field:
  type: sequence
  label: Default value
  sequence:
    type: ignore

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

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