Book Image

Drupal 10 Development Cookbook - Third Edition

By : Matt Glaman, Kevin Quillen
Book Image

Drupal 10 Development Cookbook - Third Edition

By: Matt Glaman, Kevin Quillen

Overview of this book

This new and improved third edition cookbook is packed with the latest Drupal 10 features such as a new, flexible default frontend theme - Olivero, and improved administrative experience with a new theme - Claro. This comprehensive recipe book provides updated content on the WYSIWYG (What You See Is What You Get) editing experience, improved core code performance, and code cleanup. Drupal 10 Development Cookbook begins by helping you create and manage a Drupal site. Next, you’ll get acquainted with configuring the content structure and editing content. You’ll also get to grips with all new updates of this edition, such as creating custom pages, accessing and working with entities, running and writing tests with Drupal, migrating external data into Drupal, and turning Drupal into an API platform. As you advance, you’ll learn how to customize Drupal’s features with out-of-the-box modules, contribute extensions, and write custom code to extend Drupal. By the end of this book, you’ll be able to create and manage Drupal sites, customize them to your requirements, and build custom code to deliver your projects.
Table of Contents (17 chapters)

Migrating from a previous version of Drupal

Drupal ships with a couple of core modules that assist you in updating your site from Drupal 6 or 7 to Drupal 10. The architecture between previous versions of Drupal before version 8 was radically different in design, and you cannot upgrade from 6 or 7 the same way you can from 8 or 9.

To mitigate the challenges of upgrading from Drupal 6 or 7, the Migrate Drupal module helps prepare a new environment for your older Drupal database to migrate to and is included in the core release of Drupal 10.

Custom modules, custom themes, and custom Drush commands

An important thing to note about upgrading from versions of Drupal prior to version 8 is that you will need to manually port custom modules, custom theme(s), and custom Drush commands you may have created. There are no tools to automate this, and they will not work until you have ported them to be compatible with Drupal 10. This must be done prior to upgrading, or you may encounter...