Need some help with your project? Contact me

Drupal 8 module development - 2nd edition. Yeey!

I am proud to announce that the 2nd edition of my book, Drupal 8 module development, was recently published. I’ve been working on this in the past few months and it has kept me quite busy.

The purpose of this update is to bring all the code and practices covered in the first version up to date with the newest version of Drupal 8. That is 8.7. I know. It’s not even released yet but everything you find in the new book should work with 8.7 already. I’ve been following the change records quite closely during this cycle. If, however, you do discover any issues or that I'm peddling some deprecated code, I’d appreciate an errata report.

Since 8.2 (the focus of the first version), there were quite a few changes in Drupal. There were some new things pertinent to this book, but also quite a lot of changes in practices that resulted in deprecated classes and functions. It’s important to keep up to date with these things. Why? Because Drupal 9 will basically be the latest version of Drupal 8 without all the deprecated code. So if you keep up to date, you won’t have such a big problem upgrading to Drupal 9. Read this blog post from Dries Buytaert on the plans for Drupal 9 to get more details on what I mean. Ah, and did I mention that he was kind enough to write the foreword for my book? So make sure you check that out as well.

Enjoy the book and a million thanks for the support! As usual, you can buy it from lots of places.


While Amazon has the second edition, it is still not available on Packt site.

Hey there, it is there. Please find it at the following link:


Hey there, Thanks for the work, I already bought this book from packpub , i need to buy the second or i need jsut to pay an extra for this ?


You will have to (if you want) buy the update as a separate book.

Thanks for the support!


There's already the 2nd edition there, online, if you have access to

Hi Danny,

For those who bought this book on the Amazon Kindle, I would suggest having a discount there instead of paying the full price again only for this update.

Best regards,

Hi Danny
have not yet finished your book, but so far a really exellent work.
Struggled in Chapter 7 - where I was not able to access admin/structure/product until I added the followng product.routing.yml file. I work with Drupal 8.7.8 - possibly something changed?

## Product Entity Routing.
  path: '/admin/structure/product'
    _entity_list: 'product'
    _title: 'Product List'
    _permission: 'administer site configuration'

Best regards,

Add new comment

You can post comments in Markdown and basic HTML tags.
For code blocks, wrap your code within '~~~'. For example:
$var = 'my variable';