crossword-8.x-1.x-dev/config/schema/crossword.schema.yml

config/schema/crossword.schema.yml
# Schema for the configuration for crossword module

field.storage_settings.crossword:
  type: base_entity_reference_field_settings
  label: 'File settings'
  mapping:
    display_field:
      type: boolean
      label: 'Enable Display field'
    display_default:
      type: boolean
      label: 'Files displayed by default'
    uri_scheme:
      type: string
      label: 'Upload destination'

field.value.crossword:
  type: mapping
  label: 'Default value'

field.field_settings.crossword:
  type: base_file_field_field_settings
  label: 'File settings'
  mapping:
    description_field:
      type: boolean
      label: 'Enable Description field'
    allowed_parsers:
      type: sequence
      label: 'Allowed Parsers'
      sequence:
        type: boolean
    max_columns:
      type: integer
      label: 'Maximum Columns'
    min_columns:
      type: integer
      label: 'Minimum Columns'
    max_rows:
      type: integer
      label: 'Maximum Rows'
    min_rows:
      type: integer
      label: 'Minimum Rows'

# schema for js-heavy field formatters
base_crossword_field_formatter_settings:
  type: mapping
  mapping:
    redacted:
      type: boolean
      label: 'Redact answers'
    print:
      type: boolean
      label: 'Include Print Stylesheet'
    congrats:
      type: string
      label: 'Congratulatory Message'
    details:
      type: mapping
      label: 'Details'
      mapping:
        title_tag:
          type: string
          label: 'Title Tag'
        author_tag:
          type: string
          label: 'Author Tag'
        notepad_tag:
          type: string
          label: 'Notepad Tag'
    buttons:
      type: mapping
      mapping:
        class:
          type: string
          label: 'CSS Classes'
        buttons:
          type: mapping
          mapping:
            cheat:
              type: crossword_button
              label: 'Cheat'
            solution:
              type: crossword_button
              label: 'Solution'
            clear:
              type: crossword_button
              label: 'Clear'
            undo:
              type: crossword_button
              label: 'Undo'
            redo:
              type: crossword_button
              label: 'Redo'
            instructions:
              type: crossword_button
              label: 'Instructions'
    clues:
      type: mapping
      label: 'Clues'
      mapping:
        do_not_render:
          type: boolean
          label: 'Do Not Render'
        show:
          type: boolean
          label: 'Show'
        checked:
          type: boolean
          label: 'Checked'
        input_label:
          type: string
          label: 'Label'
    errors:
      type: mapping
      label: 'Errors'
      mapping:
        show:
          type: boolean
          label: 'Show'
        checked:
          type: boolean
          label: 'Checked'
        input_label:
          type: string
          label: 'Label'
    references:
      type: mapping
      label: 'References'
      mapping:
        show:
          type: boolean
          label: 'Show'
        checked:
          type: boolean
          label: 'Checked'
        input_label:
          type: string
          label: 'Label'
    rebus:
      type: mapping
      label: 'Rebus'
      mapping:
        show:
          type: boolean
          label: 'Show'
        input_label:
          type: string
          label: 'Label'

crossword_button:
  type: mapping
  mapping:
    show:
      type: boolean
      label: 'Show'
    input_label:
      type: string
      label: 'Input Label'
    confirm:
      type: string
      label: 'Confirmation Text'

field.formatter.settings.crossword:
  type: base_crossword_field_formatter_settings
  label: 'Crossword Formatter'

field.formatter.settings.crossword_solution:
  type: mapping
  mapping:
    details:
      type: mapping
      label: 'Details'
      mapping:
        title_tag:
          type: string
          label: 'Title Tag'
        author_tag:
          type: string
          label: 'Author Tag'
        notepad_tag:
          type: string
          label: 'Notepad Tag'

field.widget.settings.file_generic_crossword:
  type: field.widget.settings.file_generic
  label: 'Crossword widget settings'

field.formatter.settings.file_default_crossword:
  type: field.formatter.settings.file_default
  label: 'Crossword default settings'

block.settings.crossword_instructions:
  type: block_settings
  label: 'Crossword Instructions block'
  mapping:
    cheat:
      type: boolean
      label: 'Cheat'
    rebus:
      type: boolean
      label: 'Rebus'
    errors:
      type: boolean
      label: 'Errors'

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

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