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

Chapter 6. Content Authoring, HTML5, and Media

In this chapter, we will be diving into some of the great improvements that Drupal 8 has implemented, such as the introduction of better HTML5 support, which caused core maintainers to rethink how markup was being output by fields and templates. This resulted in allowing theme developers to control where to use semantic elements, support for ARIA roles to improve accessibility, simplified style and script elements, and the ability for input filters to accept HTML5 elements.

Also, the emphasis on responsive or a mobile first approach to how we use a content management system resulted in a whole rewrite of the theme system and the introduction of Twig. This rewrite included both the Bartik and Seven themes, which are now responsive and allow for content to flow based on the device we happen to be viewing Drupal 8 on.

Finally, the way site builders work with content was rethought to allow for a better content authoring experience with a built-in...