views.schema.yml

Same filename and directory in other branches
  1. 11.x core/modules/views/config/schema/views.schema.yml
  2. 10 core/modules/views/config/schema/views.schema.yml
  3. 9 core/modules/views/config/schema/views.schema.yml
  4. 8.9.x core/modules/views/config/schema/views.schema.yml
core/modules/views/config/schema/views.schema.yml

File

core/modules/views/config/schema/views.schema.yml

View source
  1. # Schema for the configuration files of the Views module.
  2. views.settings:
  3. type: config_object
  4. label: 'Views settings'
  5. mapping:
  6. display_extenders:
  7. type: sequence
  8. label: 'Display extenders'
  9. sequence:
  10. type: string
  11. label: 'Display extender'
  12. sql_signature:
  13. type: boolean
  14. label: 'Add Views signature to all SQL queries'
  15. ui:
  16. type: mapping
  17. label: 'UI settings'
  18. mapping:
  19. show:
  20. type: mapping
  21. label: 'Live preview settings'
  22. mapping:
  23. additional_queries:
  24. type: boolean
  25. label: 'Show other queries run during render during live preview'
  26. default_display:
  27. type: boolean
  28. label: 'Always show the default display'
  29. performance_statistics:
  30. type: boolean
  31. label: 'Show performance statistics'
  32. preview_information:
  33. type: boolean
  34. label: 'Show information and statistics about the view during live preview'
  35. sql_query:
  36. type: mapping
  37. label: 'Query settings'
  38. mapping:
  39. enabled:
  40. type: boolean
  41. label: 'Show the SQL query'
  42. where:
  43. type: string
  44. label: 'Show SQL query'
  45. display_embed:
  46. type: boolean
  47. label: 'Allow embedded displays'
  48. always_live_preview:
  49. type: boolean
  50. label: 'Automatically update preview on changes'
  51. exposed_filter_any_label:
  52. type: string
  53. label: 'Label for "Any" value on non-required single-select exposed filters'
  54. field_rewrite_elements:
  55. type: sequence
  56. label: 'Field rewrite elements'
  57. sequence:
  58. type: string
  59. label: 'Element'
  60. views.view.*:
  61. type: config_entity
  62. label: 'View'
  63. mapping:
  64. id:
  65. type: machine_name
  66. label: 'ID'
  67. constraints:
  68. Length:
  69. # View IDs are specifically limited to 128 characters.
  70. # @see \Drupal\views_ui\ViewAddForm::form()
  71. max: 128
  72. label:
  73. type: required_label
  74. label: 'Label'
  75. module:
  76. type: string
  77. label: 'Module'
  78. description:
  79. type: text
  80. label: 'Administrative description'
  81. tag:
  82. type: string
  83. label: 'Tag'
  84. base_table:
  85. type: string
  86. label: 'Base table'
  87. base_field:
  88. type: string
  89. label: 'Base field'
  90. display:
  91. type: sequence
  92. label: 'Displays'
  93. sequence:
  94. type: mapping
  95. label: 'Display settings'
  96. mapping:
  97. id:
  98. type: string
  99. label: 'Machine name'
  100. display_title:
  101. type: text
  102. label: 'Title'
  103. display_plugin:
  104. type: string
  105. label: 'Display plugin'
  106. constraints:
  107. PluginExists:
  108. manager: plugin.manager.views.display
  109. position:
  110. type: integer
  111. label: 'Position'
  112. display_options:
  113. type: views.display.[%parent.display_plugin]
  114. cache_metadata:
  115. type: mapping
  116. label: 'Cache metadata'
  117. mapping:
  118. max-age:
  119. type: integer
  120. label: 'Cache maximum age'
  121. contexts:
  122. type: sequence
  123. label: 'Cache contexts'
  124. sequence:
  125. type: string
  126. tags:
  127. type: sequence
  128. label: 'Cache tags'
  129. sequence:
  130. type: string
  131. # Deprecated.
  132. cacheable:
  133. type: boolean
  134. label: 'Cacheable'
  135. views_block:
  136. type: block_settings
  137. label: 'View block'
  138. constraints:
  139. FullyValidatable: ~
  140. mapping:
  141. views_label:
  142. type: label
  143. label: 'Title'
  144. requiredKey: false
  145. items_per_page:
  146. type: integer
  147. label: 'Items per block'
  148. constraints:
  149. Range:
  150. min: 1
  151. # Will only be respected if the associated View is configured to allow this to be overridden.
  152. # @see \Drupal\views\Plugin\views\display\Block::blockForm()
  153. requiredKey: false
  154. # NULL to use the default defined by the view.
  155. nullable: true
  156. block.settings.views_block:*:
  157. type: views_block
  158. constraints:
  159. FullyValidatable: ~
  160. block.settings.views_exposed_filter_block:*:
  161. type: views_block

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.