Jump to ratings and reviews
Rate this book

Drupal 9 Module Development: Get up and running with building powerful Drupal modules and applications, 3rd Edition

Rate this book
Build and extend flexible Drupal sites and applications with this up-to-date, expert guide to Drupal 9 module development

Publisher's A new edition, updated for Drupal 10 architecture and features to build custom modules has now been published and is available

Key FeaturesExplore the essential Drupal 9 APIs for module developmentLearn how to implement data modeling, caching, architecture, and much more in your Drupal applicationsDiscover what's new in the latest Drupal core releaseBook DescriptionWith its latest release, Drupal 9, the popular open source CMS platform has been updated with new functionalities for building complex Drupal apps with ease. This third edition of the Drupal Module Development guide covers these new Drupal features, helping you to stay on top of code deprecations and the changing architecture with every release.

The book starts by introducing you to the Drupal 9 architecture and its subsystems before showing you how to create your first module with basic functionality. You'll explore the Drupal logging and mailing systems, learn how to output data using the theme layer, and work with menus and links programmatically. Once you've understood the different kinds of data storage, this Drupal guide will demonstrate how to create custom entities and field types and leverage the Database API for lower-level database queries. You'll also learn how to introduce JavaScript into your module, work with various file systems, and ensure that your code works on multilingual sites. Finally, you'll work with Views, create automated tests for your functionality, and write secure code.

By the end of the book, you'll have learned how to develop custom modules that can provide solutions to complex business problems, and who knows, maybe you'll even contribute to the Drupal community!

What you will learnDevelop custom Drupal 9 modules for your applicationsMaster different Drupal 9 subsystems and APIsModel, store, manipulate, and process data for effective data managementDisplay data and content in a clean and secure way using the theme systemTest your business logic to prevent regressionStay ahead of the curve and write PHP code by implementing best practicesWho this book is forIf you are a Drupal developer looking to learn Drupal 9 to write modules for your sites, this book is for you. Drupal site builders and PHP developers with basic object-oriented programming skills will also find this book helpful. Although not necessary, some Symfony experience will help with understanding concepts easily.

Table of ContentsDeveloping for Drupal 9Creating Your First ModuleLogging and MailingTheming Menus and Menu LinksData Modeling and StorageYour Own Custom Entity and Plugin TypesThe Database APICustom FieldsAccess ControlCachingJavaScript and the Ajax APIInternationalization and LanguagesBatches, Queues, and CronViewsWorking with Files and ImagesAutomated TestingDrupal 9 Security

627 pages, Kindle Edition

Published August 14, 2020

9 people are currently reading
19 people want to read

About the author

Daniel Sipos

6 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (66%)
4 stars
1 (11%)
3 stars
2 (22%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for Kinan Diraneyya.
155 reviews11 followers
January 1, 2022
Drupal 9 Module Development is generally a comprehensive book on the subject. And its writer does a good job at stopping when he reaches details outside the book's scope by giving a little bit of background and linking a few resources for extended reading.

But while the book scales well from simple subjects to more complex ones, I thought it could have been better structured, as I did not feel I had enough overview of the average Drupal module before diving in further into more advanced subjects. Furthermore, I felt that some topics were misplaced relative to the chapters that contained them.

Overall, I liked the book's balance between theory and practice, and I was happy with the bit of lore about Drupal's past that it throws in from time to time, but I found it slightly harder to digest than the average technical textbook.
Profile Image for Luis González.
12 reviews
August 27, 2021
I missed some information about migrations but the whole book is a great documentation for developers
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.