image.schema.yml

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

File

core/modules/image/config/schema/image.schema.yml

View source
  1. # Schema for configuration files of the Image module.
  2. image.style.*:
  3. type: config_entity
  4. label: 'Image style'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. name:
  9. type: machine_name
  10. label:
  11. type: required_label
  12. label: 'Label'
  13. effects:
  14. type: sequence
  15. sequence:
  16. type: mapping
  17. mapping:
  18. uuid:
  19. type: uuid
  20. id:
  21. type: string
  22. constraints:
  23. PluginExists:
  24. manager: plugin.manager.image.effect
  25. interface: 'Drupal\image\ImageEffectInterface'
  26. weight:
  27. type: weight
  28. data:
  29. type: image.effect.[%parent.id]
  30. image.effect.*:
  31. type: mapping
  32. label: 'Effect settings'
  33. image.effect.image_crop:
  34. type: image_size
  35. label: 'Image crop'
  36. mapping:
  37. anchor:
  38. label: 'Anchor'
  39. type: string
  40. image.effect.image_convert:
  41. type: mapping
  42. label: 'Convert'
  43. mapping:
  44. extension:
  45. label: 'Extension'
  46. type: string
  47. constraints:
  48. Choice:
  49. callback: 'Drupal\Core\ImageToolkit\ImageToolkitManager::getAllValidExtensions'
  50. image.effect.image_resize:
  51. type: image_size
  52. label: 'Image resize'
  53. image.effect.image_rotate:
  54. type: mapping
  55. label: 'Image rotate'
  56. mapping:
  57. degrees:
  58. type: integer
  59. label: 'Rotation angle'
  60. bgcolor:
  61. label: 'Background color'
  62. type: color_hex
  63. random:
  64. type: boolean
  65. label: 'Randomize'
  66. image.effect.image_scale:
  67. type: image_size
  68. label: 'Image scale'
  69. mapping:
  70. upscale:
  71. type: boolean
  72. label: 'Upscale'
  73. # The image desaturate effect has no settings.
  74. image.effect.image_desaturate:
  75. type: sequence
  76. image.effect.image_scale_and_crop:
  77. type: image_size
  78. label: 'Image scale and crop'
  79. mapping:
  80. anchor:
  81. label: 'Anchor'
  82. type: string
  83. image.settings:
  84. type: config_object
  85. constraints:
  86. FullyValidatable: ~
  87. mapping:
  88. preview_image:
  89. type: string
  90. label: 'Preview image'
  91. constraints:
  92. NotBlank: []
  93. # We need to use Symfony's Image constraint because it will accept a file
  94. # path as a string, whereas the File module's FileIsImage constraint expects
  95. # a full file entity.
  96. Image: []
  97. allow_insecure_derivatives:
  98. type: boolean
  99. label: 'Allow insecure image derivatives'
  100. suppress_itok_output:
  101. type: boolean
  102. label: 'Suppress the itok query string for image derivatives'
  103. field.storage_settings.image:
  104. type: field.storage_settings.file
  105. label: 'Image settings'
  106. mapping:
  107. default_image:
  108. type: field_default_image
  109. label: 'Default value'
  110. field.field_settings.image:
  111. type: base_file_field_field_settings
  112. label: 'Image settings'
  113. mapping:
  114. max_resolution:
  115. type: string
  116. label: 'Maximum image dimensions'
  117. min_resolution:
  118. type: string
  119. label: 'Minimum image dimensions'
  120. alt_field:
  121. type: boolean
  122. label: 'Enable Alt field'
  123. alt_field_required:
  124. type: boolean
  125. label: 'Alt field required'
  126. title_field:
  127. type: boolean
  128. label: 'Enable Title field'
  129. title_field_required:
  130. type: boolean
  131. label: 'Title field required'
  132. default_image:
  133. type: field_default_image
  134. label: 'Default value'
  135. field.value.image:
  136. type: field_default_image
  137. label: 'Default value'
  138. field.formatter.settings.image:
  139. type: mapping
  140. label: 'Image field display format settings'
  141. mapping:
  142. image_link:
  143. type: string
  144. label: 'Link image to'
  145. image_style:
  146. type: string
  147. label: 'Image style'
  148. image_loading:
  149. type: mapping
  150. label: 'Image loading settings'
  151. mapping:
  152. attribute:
  153. type: string
  154. label: 'Loading attribute'
  155. field.formatter.settings.image_url:
  156. type: mapping
  157. label: 'Image URL formatter settings'
  158. mapping:
  159. image_style:
  160. type: string
  161. label: 'Image style'
  162. field.widget.settings.image_image:
  163. type: mapping
  164. label: 'Image field display format settings'
  165. mapping:
  166. progress_indicator:
  167. type: string
  168. label: 'Progress indicator'
  169. preview_image_style:
  170. type: string
  171. label: 'Preview image style'

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