Commit 9a42b9f9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1910606 by vijaycs85, mavimo, dawehner, sandipmkhairnar: Improve the...

Issue #1910606 by vijaycs85, mavimo, dawehner, sandipmkhairnar: Improve the configurations schemas for Views significantly.
parent 25813669
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
# Schema for the views access plugins.

views.access.none:
  type: sequence
  label: 'None'
  sequence:
    - type: string

views.access.perm:
  type: mapping
  label: 'Permission'
  mapping:
    perm:
      type: string
      label: 'Permission'

views.access.role:
  type: sequence
  label: 'Role'
  sequence:
    - type: string
      label: 'Role'
+58 −0
Original line number Diff line number Diff line
# Schema for the views area plugins.

views.area.*:
  type: views_area
  label: 'Default area'

views.area.text:
  type: views_area
  label: 'Text'
  mapping:
    content:
      type: text
      label: 'The shown text of the area'
    format:
      type: string
      label: 'The filter format the content is in'
    tokenize:
      type: boolean
      label: 'Should replacement tokens be used from the first row'

views.area.text_custom:
  type: views_area
  label: 'Text custom'
  mapping:
    content:
      type: text
      label: 'The shown text of the area'
    tokenize:
      type: boolean
      label: 'Should replacement tokens be used from the first row'

views.area.result:
  type: views_area
  label: 'Result'
  mapping:
    content:
      type: text
      label: 'The shown text of the result summary area'


views.area.title:
  type: views_area
  label: 'Title'
  mapping:
    title:
      type: label
      label: 'The title which will be overriden for the page'

views.area.view:
  type: views_area
  label: 'View'
  mapping:
    view_to_insert:
      type: string
      label: 'View to insert'
    inherit_to_arguments:
      type: boolean
      label: 'Inherit contextual filters'
+67 −0
Original line number Diff line number Diff line
# Schema for the views argument plugins.

views.argument.*:
  type: views_argument
  label: 'Default argument'

views.argument.many_to_one:
  type: views_argument
  label: 'Many to one'
  mapping:
    break_phrase:
      type: boolean
      label: 'Allow multiple values'
    add_table:
      type: boolean
      label: 'Allow multiple filter values to work together'
    require_value:
      type: boolean
      label: 'Do not display items with no value in summary'

views.argument.null:
  type: views_argument
  label: 'Null'
  mapping:
    must_not_be:
      type: boolean
      label: 'Fail basic validation if any argument is given'

views.argument.numeric:
  type: views_argument
  label: 'Numeric'
  mapping:
    break_phrase:
      type: boolean
      label: 'Allow multiple values'
    not:
      type: boolean
      label: 'Exclude'

views.argument.string:
  type: views_argument
  label: 'String'
  mapping:
    glossary:
      type: boolean
      label: 'Glossary mode'
    limit:
      type: integer
      label: 'Character limit'
    case:
      type: string
      label: 'Case'
    path_case:
      type: string
      label: 'Case in path'
    transform_dash:
      type: boolean
      label: 'Transform spaces to dashes in URL'
    break_phrase:
      type: boolean
      label: 'Allow multiple values'
    add_table:
      type: boolean
      label: 'Allow multiple filter values to work together'
    require_value:
      type: boolean
      label: 'Do not display items with no value in summary'
+28 −0
Original line number Diff line number Diff line
# Schema for the views default arguments.

views.argument_default.fixed:
  type: mapping
  label: 'Fixed'
  mapping:
    argument:
      type: string
      label: 'Fixed value'

views.argument_default.php:
  type: mapping
  label: 'PHP Code'
  mapping:
    code:
      type: string
      label: 'PHP contextual filter code'

views.argument_default.raw:
  type: mapping
  label: 'Raw value from URL'
  mapping:
    index:
      type: integer
      label: 'Path component'
    use_alias:
      type: boolean
      label: 'Use path alias'
+19 −0
Original line number Diff line number Diff line
# Schema for the views argument validators.

views.argument_validator.none:
  type: sequence
  label: 'Basic validation'
  sequence:
    - type: string

views.argument_validator.php:
  type: mapping
  label: 'PHP Code'
  mapping:
    code:
      type: string
      label: 'PHP validate code'

views.argument_validator.numeric:
  type: boolean
  label: 'Numeric'
Loading