responsive_image.schema.yml

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

File

core/modules/responsive_image/config/schema/responsive_image.schema.yml

View source
  1. # Schema for the configuration files of the Responsive Image module.
  2. responsive_image.styles.*:
  3. type: config_entity
  4. label: 'Responsive image style'
  5. mapping:
  6. id:
  7. type: string
  8. label: 'Machine-readable name'
  9. label:
  10. type: label
  11. label: 'Label'
  12. image_style_mappings:
  13. type: sequence
  14. label: 'Image style mappings'
  15. sequence:
  16. type: mapping
  17. label: 'Image style mapping'
  18. mapping:
  19. # Image mapping type. Either 'sizes' (using the 'sizes' attribute)
  20. # or 'image_style' (using a single image style to map to this
  21. # breakpoint).
  22. image_mapping_type:
  23. type: string
  24. label: 'Responsive image mapping type'
  25. image_mapping:
  26. type: responsive_image.image_mapping_type.[%parent.image_mapping_type]
  27. breakpoint_id:
  28. type: string
  29. label: 'Breakpoint ID'
  30. multiplier:
  31. type: string
  32. label: 'Multiplier'
  33. breakpoint_group:
  34. type: string
  35. label: 'Breakpoint group'
  36. fallback_image_style:
  37. type: string
  38. label: 'Fallback image style'
  39. responsive_image.image_mapping_type.image_style:
  40. type: string
  41. label: 'Image style'
  42. responsive_image.image_mapping_type.sizes:
  43. type: mapping
  44. mapping:
  45. # The value for the sizes attribute as described in the spec:
  46. # http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#attr-img-sizes
  47. sizes:
  48. type: string
  49. label: 'Sizes attribute'
  50. sizes_image_styles:
  51. type: sequence
  52. label: 'Image styles to be used when using the ''sizes'' attribute'
  53. sequence:
  54. type: string
  55. label: 'Image style'
  56. field.formatter.settings.responsive_image:
  57. type: mapping
  58. label: 'Responsive image list format settings'
  59. mapping:
  60. responsive_image_style:
  61. type: string
  62. label: 'Responsive image style'
  63. image_link:
  64. type: string
  65. label: 'Link image to'

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