Book Image

Mastering Drupal 8

By : Sean Montague, Chaz Chumley, William Hurley
Book Image

Mastering Drupal 8

By: Sean Montague, Chaz Chumley, William Hurley

Overview of this book

Drupal is an open source content management system trusted by governments and organizations around the globe to run their websites. It brings with it extensive content authoring tools, reliable performance, and a proven track record of security. The community of more than 1,000,000 developers, designers, editors, and others have developed and maintained a wealth of modules, themes, and other add-ons to help you build a dynamic web experience. Drupal 8 is the latest release of the Drupal built on the Symfony2 framework. This is the largest change to the Drupal project in its history. The entire API of Drupal has been rebuilt using Symfony and everything from the administrative UI to themes to custom module development has been affected. This book will cover everything you need to plan and build a complete website using Drupal 8. It will provide a clear and concise walkthrough of the more than 200 new features and improvements introduced in Drupal core. In this book, you will learn advanced site building techniques, create and modify themes using Twig, create custom modules using the new Drupal API, explore the new REST and Multilingual functionality, import, and export Configuration, and learn how to migrate from earlier versions of Drupal.
Table of Contents (25 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Author
About the Reviewer
Customer Feedback
www.PacktPub.com
Preface

Configuration workflow with Drush


In addition to using the interface to import and export configuration, it can also be triggered through Drush. The following commands are available:

  • drush config-export: Exports all site configuration to the synchronization folder.
  • drush config-import: Imports all site configuration from the synchronization folder. By default, this will delete any configuration on the system that is not present in the synchronization folder; you can provide the --partial flag to avoid this behavior.
  • drush config-pull: Exports configuration from one remote site and copies it to another; for example, drush config-pull @live @self will export all configuration on the site at the @live alias and copy the files down to the current site.
  • drush config-list: Lists all configuration objects on the site.
  • drush config-set: Directly sets a configuration value in the database.
  • drush config-get: Returns the value of a configuration object.
  • drush config-edit: Opens the system editor, for example...