Drupal at Your Fingertips

By admin, 13 March, 2023
Drupal at your fingertips book cover

I've been toying with the idea of writing a Drupal book for a few years now but with Drupal 10 on the Horizon, I decided it was finally time. So: 

TADAH!!! I present:  Drupal at your fingertips - a Modern Drupal developers' quick reference guide.

I hope folks enjoy my effort.  I really love Drupal,  the whole idea of the project, as well as the open source movement.  It is such an elegant way to create amazing software.

This book contains many of my Drupal development notes I've collected over the years of building web sites for various organizations.  It includes sample code in a repository.  My intent is for web developers to be able to quickly find answers to their everyday development needs.  It isn't too heavy on theory, hopefully just enough to explain how to get where you need to go.

As with any labor of love, it continues to evolve and I will keep adding chapters as often as possible. I don't promise to be the world's foremost expert in Drupal by any means. I've published it with the intent that others can contribute directly by editing the text directly on Github.  Hopefully others will fix my mistakes or clarify my less than stellar writing. Thanks to Matt Glaman for his input and for creating the image above that I used for the cover.

So far, the chapters are:

  • Batch and Queue - Batch API
  • Blocks - Generate the code to create blocks, dependency injection, blocks with config forms, block permissions
  • Caching - Cache tags, disabling caching, caching REST resources, development setup, various caching tips
  • Config - Creating, loading, overriding, drush config commands
  • Cron - Using hook_cron, sample crontab files, how to stop cron
  • Dates - Getting and setting date fields, date arithmetic, expiration, node creation and changed dates, Smart date module
  • Development - Local setup, creating sites, DDEV, troubleshooting, PHPStorm setup, Xdebug setup, Twig debugging
  • Forms - Creating and modifying forms using the Form API, AJAX forms, modals
  • General - Useful things that seemed to not fit well elsewhere
  • Links, Aliases and URLs
  • Logging and notification
  • Menus
  • Nodes and Fields - Loading and saving nodes and different types of fields, multivalue field magic, link fields, entity reference fields, url fields, storing JSON data into text fields, paragraphs, great cheat sheets
  • Redirects
  • Queries - entityQueries, SQL queries, inserting and deleting content
  • PHPUnit and Drupal Test Traits
  • Taxonomy

Chapters in the works are:

  • Composer, updates and patches
  • Debugging
  • Dependency Injection
  • Drush
  • Email
  • Entities
  • Events
  • Hooks
  • Javascript
  • Media image files
  • Migration
  • Miscellaneous
  • Modals
  • Paragraphs
  • Reaching out of Drupal
  • Render arrays
  • Routes and Controllers
  • Security and Preventing attacks
  • Services
  • Single sign on
  • Twig
  • Views