Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Drupal 8 Configuration Management

You're reading from  Drupal 8 Configuration Management

Product type Book
Published in Mar 2015
Publisher
ISBN-13 9781783985203
Pages 148 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (16) Chapters

Drupal 8 Configuration Management
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Understanding Configuration Management 2. Configuration Management for Administrators 3. Drupal 8's Take on Configuration Management 4. The Configuration Management API 5. The Anatomy of Schema Files 6. Adding Configuration Management to Your Module 7. Upgrading Your Drupal 7 Variables to the Drupal 8 Configuration 8. Managing Configuration for Multilingual Websites 9. Useful Tools and Getting Help Index

What are schema files in Drupal?


With schema files, you can describe the contents of a configuration file. You can determine which configuration keys are allowed in a specific configuration object and which data type configuration data needs to have. Drupal 8's schema files are inspired by Kwalify.

Note

Kwalify (http://www.kuwata-lab.com/kwalify/) is a parser and schema validator for YAML and JSON. It adds a schema to YAML and JSON as, for example DTD does for XML.

The format used by Kwalify was slightly modified to fit the needs of the structure needed in Drupal 8 but, generally, it is largely identical.

Schema files were not introduced for validation purposes only. The primary use case for schema files was to support multilingual configuration in Drupal 8. It was necessary to create a tool to identify all translatable strings within the configuration files, so the entire configuration, views, menu items, and user roles that you may define in a custom module or theme could be offered as translation...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}