views.field.schema.yml

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

File

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

View source
  1. # Schema for the views field plugins.
  2. views.field.*:
  3. type: views_field
  4. label: 'Default field'
  5. views.field.boolean:
  6. type: views_field
  7. label: 'Boolean'
  8. mapping:
  9. type:
  10. type: string
  11. label: 'Output format'
  12. type_custom_true:
  13. type: label
  14. label: 'Custom output for TRUE'
  15. type_custom_false:
  16. type: label
  17. label: 'Custom output for FALSE'
  18. not:
  19. type: boolean
  20. label: 'Reverse'
  21. views.field.broken:
  22. type: views_field
  23. label: 'Broken'
  24. views.field.counter:
  25. type: views_field
  26. label: 'Counter'
  27. mapping:
  28. counter_start:
  29. type: integer
  30. label: 'Starting value'
  31. views.field.custom:
  32. type: views_field
  33. label: 'Custom'
  34. views.field.date:
  35. type: views_field
  36. label: 'Date'
  37. mapping:
  38. date_format:
  39. type: string
  40. label: 'Date format'
  41. custom_date_format:
  42. type: string
  43. label: 'Custom date format'
  44. timezone:
  45. type: string
  46. label: 'Timezone'
  47. views.field.entity_label:
  48. type: views_field
  49. label: 'Entity label'
  50. mapping:
  51. link_to_entity:
  52. type: boolean
  53. label: 'Link to entity'
  54. views.field.file_size:
  55. type: views_field
  56. label: 'File size'
  57. mapping:
  58. file_size_display:
  59. type: string
  60. label: 'File size display'
  61. views.field.links:
  62. type: views_field
  63. label: 'Links'
  64. mapping:
  65. fields:
  66. type: sequence
  67. label: 'Fields'
  68. sequence:
  69. type: string
  70. label: 'Field'
  71. destination:
  72. type: boolean
  73. label: 'Include destination'
  74. views.field.dropbutton:
  75. type: views.field.links
  76. label: 'Drop button'
  77. views.field.machine_name:
  78. type: views_field
  79. label: 'Machine name'
  80. mapping:
  81. machine_name:
  82. type: boolean
  83. label: 'Output machine name'
  84. views.field.markup:
  85. type: views_field
  86. label: 'Markup'
  87. views.field.numeric:
  88. type: views_field
  89. label: 'Numeric'
  90. mapping:
  91. set_precision:
  92. type: boolean
  93. label: 'Round'
  94. precision:
  95. type: integer
  96. label: 'Precision'
  97. decimal:
  98. type: string
  99. label: 'Decimal point'
  100. separator:
  101. type: string
  102. label: 'Thousands marker'
  103. format_plural:
  104. type: boolean
  105. label: 'Format plural'
  106. format_plural_string:
  107. type: plural_label
  108. label: 'Plural variants'
  109. constraints:
  110. Regex:
  111. # Normally, labels cannot contain invisible control characters. In this particular
  112. # case, an invisible character (ASCII 3, 0x03) is used to encode translation
  113. # information, so carve out an exception for that only.
  114. # @see \Drupal\views\Plugin\views\field\NumericField
  115. pattern: '/([^\PC\x03])/u'
  116. match: false
  117. message: 'Labels are not allowed to span multiple lines or contain control characters.'
  118. prefix:
  119. type: label
  120. label: 'Prefix'
  121. suffix:
  122. type: label
  123. label: 'Suffix'
  124. views.field.prerender_list:
  125. type: views_field
  126. label: 'List'
  127. mapping:
  128. type:
  129. type: string
  130. label: 'Display type'
  131. separator:
  132. type: string
  133. label: 'Separator'
  134. views.field.serialized:
  135. type: views_field
  136. label: 'Serialized'
  137. mapping:
  138. format:
  139. type: string
  140. label: 'Display format'
  141. key:
  142. type: string
  143. label: 'Which key should be displayed'
  144. views.field.standard:
  145. type: views_field
  146. label: 'Standard'
  147. views.field.time_interval:
  148. type: views_field
  149. label: 'Time interval'
  150. mapping:
  151. granularity:
  152. type: integer
  153. label: 'Granularity'
  154. views.field.url:
  155. type: views_field
  156. label: 'URL'
  157. mapping:
  158. display_as_link:
  159. type: boolean
  160. label: 'Display as link'
  161. views.field.language:
  162. type: views_field
  163. label: 'Language'
  164. mapping:
  165. native_language:
  166. type: boolean
  167. label: 'Display in native language'
  168. views.field.rendered_entity:
  169. type: views_field
  170. label: 'Rendered entity'
  171. mapping:
  172. view_mode:
  173. type: string
  174. label: 'View mode'
  175. views.field.entity_link:
  176. type: views_field
  177. label: 'Entity link'
  178. mapping:
  179. text:
  180. type: label
  181. label: 'Text to display'
  182. output_url_as_text:
  183. type: boolean
  184. label: 'Output the URL as text'
  185. absolute:
  186. type: boolean
  187. label: 'Output an absolute link'
  188. views.field.entity_link_delete:
  189. type: views.field.entity_link
  190. label: 'Entity delete link'
  191. views.field.entity_link_edit:
  192. type: views.field.entity_link
  193. label: 'Entity edit link'
  194. views.field.bulk_form:
  195. type: views_field_bulk_form
  196. label: 'Bulk form'
  197. views.field.field:
  198. type: views_field
  199. label: 'Views entity field handler'
  200. mapping:
  201. click_sort_column:
  202. type: string
  203. label: 'Column used for click sorting'
  204. type:
  205. type: string
  206. label: 'Formatter'
  207. settings:
  208. label: 'Settings'
  209. type: field.formatter.settings.[%parent.type]
  210. group_column:
  211. type: string
  212. label: 'Group by column'
  213. group_columns:
  214. type: sequence
  215. label: 'Group by columns'
  216. sequence:
  217. type: string
  218. label: 'Column'
  219. group_rows:
  220. type: boolean
  221. label: 'Display all values in the same row'
  222. delta_limit:
  223. type: integer
  224. label: 'Field'
  225. delta_offset:
  226. type: integer
  227. label: 'Offset'
  228. delta_reversed:
  229. type: boolean
  230. label: 'Reversed'
  231. delta_first_last:
  232. type: boolean
  233. label: 'First and last only'
  234. multi_type:
  235. type: string
  236. label: 'Display type'
  237. separator:
  238. type: label
  239. label: 'Separator'
  240. field_api_classes:
  241. type: boolean
  242. label: 'Use field template'

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