View on GitHub


Drupal at your fingertips

Drupal 9 & 10 developer’s quick code reference

by Selwyn Polit

This book is a quick reference for developers creating Drupal sites. While working on such sites during my career, I have gathered a large collection of notes and code which I use for my reference. I hope it will be useful for you, too.

During my hunting through examples on, Stack Overflow and many other places, I often wished there was a succinct set of current annotated code samples explaining how to do things the Drupal way. Of course, there is the excellent examples module, which is very handy. But this book is designed to otherwise fill that gap. Please forgive the todo items, but I’ve found that if I want to get it perfect, it won’t ever get published.

You are invited to contribute (in the open source way) by making edits and pull requests at this link on Github. There is a very simple online editor which automatically forks the repo and lets you type your changes directly in your browser in markdown format. Try it by editing a chapter of interest to you. And while you are here, see who else contributed to the masterpiece ;-))


If you are inspired, please be a part of this project by contributing your own brilliance (imposters welcomed!) and add your name on the attribution page.

I’m working on writing more about:

Last Updated on: 3-4-2023

Drupal at your fingertips by Selwyn Polit is licensed under CC BY 4.0