text.schema.yml

Same filename in other branches
  1. 9 core/modules/text/config/schema/text.schema.yml
  2. 8.9.x core/modules/text/config/schema/text.schema.yml
  3. 11.x core/modules/text/config/schema/text.schema.yml
core/modules/text/config/schema/text.schema.yml

File

core/modules/text/config/schema/text.schema.yml

View source
  1. # Schema for the configuration files of the text module.
  2. text.settings:
  3. type: config_object
  4. label: 'Text settings'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. default_summary_length:
  9. type: integer
  10. label: 'Default summary length'
  11. constraints:
  12. NotNull: [ ]
  13. Range:
  14. min: 1
  15. field.storage_settings.text:
  16. type: mapping
  17. label: 'Text (formatted) settings'
  18. mapping:
  19. max_length:
  20. type: integer
  21. label: 'Maximum length'
  22. field.field_settings.text:
  23. type: mapping
  24. label: 'Text (formatted) settings'
  25. mapping:
  26. allowed_formats:
  27. type: sequence
  28. label: 'Allowed text formats'
  29. sequence:
  30. type: string
  31. field.value.text:
  32. type: mapping
  33. label: 'Default value'
  34. mapping:
  35. value:
  36. type: label
  37. label: 'Value'
  38. format:
  39. type: string
  40. label: 'Text format'
  41. field.storage_settings.text_long:
  42. label: 'Text (formatted, long) settings'
  43. type: field.field_settings.text
  44. field.field_settings.text_long:
  45. label: 'Text (formatted, long) settings'
  46. type: mapping
  47. mapping:
  48. allowed_formats:
  49. type: sequence
  50. label: 'Allowed text formats'
  51. sequence:
  52. type: string
  53. field.value.text_long:
  54. type: mapping
  55. label: 'Default value'
  56. mapping:
  57. value:
  58. type: text
  59. label: 'Value'
  60. format:
  61. type: string
  62. label: 'Text format'
  63. # This field type has no field storage settings, so no specific config schema type.
  64. # @see `type: field.storage_settings.*`
  65. field.field_settings.text_with_summary:
  66. type: mapping
  67. label: 'Text (formatted, long, with summary) settings'
  68. mapping:
  69. display_summary:
  70. type: boolean
  71. label: 'Summary input'
  72. required_summary:
  73. type: boolean
  74. label: 'Require summary'
  75. allowed_formats:
  76. type: sequence
  77. label: 'Allowed text formats'
  78. sequence:
  79. type: string
  80. field.value.text_with_summary:
  81. type: mapping
  82. label: 'Default value'
  83. mapping:
  84. value:
  85. type: text
  86. label: 'Body'
  87. summary:
  88. type: string
  89. label: 'Summary'
  90. format:
  91. type: string
  92. label: 'Text format'
  93. field.formatter.settings.text_default:
  94. type: mapping
  95. label: 'Formatted text default display format settings'
  96. field.formatter.settings.text_summary_or_trimmed:
  97. type: mapping
  98. label: 'Summary or trimmed formatted text display format settings'
  99. mapping:
  100. trim_length:
  101. type: integer
  102. label: 'Trim length'
  103. field.formatter.settings.text_trimmed:
  104. type: mapping
  105. label: 'Trimmed text display format settings'
  106. mapping:
  107. trim_length:
  108. type: integer
  109. label: 'Trim length'
  110. field.widget.settings.text_textarea:
  111. type: mapping
  112. label: 'Text area (multiple rows) display format settings'
  113. mapping:
  114. rows:
  115. type: integer
  116. label: 'Rows'
  117. placeholder:
  118. type: label
  119. label: 'Placeholder'
  120. field.widget.settings.text_textarea_with_summary:
  121. type: mapping
  122. label: 'Text area with a summary display format settings'
  123. mapping:
  124. rows:
  125. type: integer
  126. label: 'Rows'
  127. summary_rows:
  128. type: integer
  129. label: 'Number of summary rows'
  130. placeholder:
  131. type: text
  132. label: 'Placeholder'
  133. show_summary:
  134. type: boolean
  135. label: 'Always show summary'
  136. field.widget.settings.text_textfield:
  137. type: mapping
  138. label: 'Text field display format settings'
  139. mapping:
  140. size:
  141. type: integer
  142. label: 'Size of textfield'
  143. placeholder:
  144. type: label
  145. label: 'Placeholder'

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