field_example.schema.yml

Same filename in other branches
  1. 3.x modules/field_example/config/schema/field_example.schema.yml
  2. 8.x-1.x field_example/config/schema/field_example.schema.yml
modules/field_example/config/schema/field_example.schema.yml

File

modules/field_example/config/schema/field_example.schema.yml

View source
  1. # @see Configuration schema/metadata at https://drupal.org/node/1905070
  2. #
  3. field.field_example_rgb.value:
  4. type: sequence
  5. label: 'Default value'
  6. sequence:
  7. - type: mapping
  8. label: 'Default'
  9. mapping:
  10. value:
  11. type: string
  12. label: 'Value'
  13. # Relates to the field_example_color_background formatter plugin.
  14. # \Drupal\field_example\Plugin\Field\FieldFormatter\ColorBackgroundFormatter.
  15. field.formatter.settings.field_example_color_background:
  16. type: mapping
  17. label: Background color formatter settings
  18. mapping:
  19. adjust_text_color:
  20. type: boolean
  21. label: Automatically adjust foreground text color based on background color lightness.