views.schema.yml

Same filename and directory in other branches
  1. 9 core/modules/views/config/schema/views.schema.yml
  2. 8.9.x core/modules/views/config/schema/views.schema.yml
  3. 10 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. advanced_column:
  27. type: boolean
  28. label: 'Always show advanced display settings'
  29. default_display:
  30. type: boolean
  31. label: 'Always show the default display'
  32. performance_statistics:
  33. type: boolean
  34. label: 'Show performance statistics'
  35. preview_information:
  36. type: boolean
  37. label: 'Show information and statistics about the view during live preview'
  38. sql_query:
  39. type: mapping
  40. label: 'Query settings'
  41. mapping:
  42. enabled:
  43. type: boolean
  44. label: 'Show the SQL query'
  45. where:
  46. type: string
  47. label: 'Show SQL query'
  48. display_embed:
  49. type: boolean
  50. label: 'Allow embedded displays'
  51. always_live_preview:
  52. type: boolean
  53. label: 'Automatically update preview on changes'
  54. exposed_filter_any_label:
  55. type: string
  56. label: 'Label for "Any" value on non-required single-select exposed filters'
  57. field_rewrite_elements:
  58. type: sequence
  59. label: 'Field rewrite elements'
  60. sequence:
  61. type: string
  62. label: 'Element'
  63. views.view.*:
  64. type: config_entity
  65. label: 'View'
  66. mapping:
  67. id:
  68. type: machine_name
  69. label: 'ID'
  70. constraints:
  71. Length:
  72. # View IDs are specifically limited to 128 characters.
  73. # @see \Drupal\views_ui\ViewAddForm::form()
  74. max: 128
  75. label:
  76. type: required_label
  77. label: 'Label'
  78. module:
  79. type: string
  80. label: 'Module'
  81. description:
  82. type: text
  83. label: 'Administrative description'
  84. tag:
  85. type: string
  86. label: 'Tag'
  87. base_table:
  88. type: string
  89. label: 'Base table'
  90. base_field:
  91. type: string
  92. label: 'Base field'
  93. display:
  94. type: sequence
  95. label: 'Displays'
  96. sequence:
  97. type: mapping
  98. label: 'Display settings'
  99. mapping:
  100. id:
  101. type: string
  102. label: 'Machine name'
  103. display_title:
  104. type: text
  105. label: 'Title'
  106. display_plugin:
  107. type: string
  108. label: 'Display plugin'
  109. constraints:
  110. PluginExists:
  111. manager: plugin.manager.views.display
  112. position:
  113. type: integer
  114. label: 'Position'
  115. display_options:
  116. type: views.display.[%parent.display_plugin]
  117. cache_metadata:
  118. type: mapping
  119. label: 'Cache metadata'
  120. mapping:
  121. max-age:
  122. type: integer
  123. label: 'Cache maximum age'
  124. contexts:
  125. type: sequence
  126. label: 'Cache contexts'
  127. sequence:
  128. type: string
  129. tags:
  130. type: sequence
  131. label: 'Cache tags'
  132. sequence:
  133. type: string
  134. # Deprecated.
  135. cacheable:
  136. type: boolean
  137. label: 'Cacheable'
  138. views_block:
  139. type: block_settings
  140. label: 'View block'
  141. mapping:
  142. views_label:
  143. type: label
  144. label: 'Title'
  145. items_per_page:
  146. type: string
  147. label: 'Items per block'
  148. block.settings.views_block:*:
  149. type: views_block
  150. block.settings.views_exposed_filter_block:*:
  151. type: views_block

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