config_simple_example.schema.yml

modules/config_simple_example/config/schema/config_simple_example.schema.yml

File

modules/config_simple_example/config/schema/config_simple_example.schema.yml

View source
  1. config_simple_example.settings:
  2. # A config_object is a configuration object which can store fields.
  3. # You have to map all field types the object stores: string, boolean, etc.
  4. # The "text" field type is special because it's translatable by default.
  5. # Checkout how to define schema and all available data types in:
  6. # https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata
  7. # Direct link to cheat sheet:
  8. # https://www.drupal.org/files/ConfigSchemaCheatSheet2.0.pdf
  9. # Use Configuration Inspector to validate schema files:
  10. # https://drupal.org/project/config_inspector
  11. type: config_object
  12. label: 'Example config'
  13. mapping:
  14. message:
  15. type: text
  16. label: 'Message'