Drupal 8 includes support for a Kwalify (http://www.kuwata-lab.com/kwalify/) inspired schema/metadata language for configuration YAML files. Kwalify itself is written in Python and we needed slight adjustments in the format, so not all of the details of Kwalify are directly applicable, but it is pretty close.
Table of contents
- An introductory example
- What are schema files used for?
- Types supported in metadata files
- Dynamic type references
- Code style to use for schema files
- PHP API
- Debugging your schema
- Even more background information
An introductory example #
Take site maintenance mode settings as a simple first example. System module has a core/modules/system/config/system.maintenance.yml file to contain the two settings related to maintenance mode (whether the site is taken offline for normal visitors):
message: '@site is currently under maintenance. We should be back shortly. Thank you for your patience.'
This is a placeholder for documentation related to the metatag.module