Sub-title: 
Explore modern development practices for building professional modules and themes for Drupal sites
Authors: 
Publisher: 
Packt Publishing
Publication date: 
2020-08
Page count: 
493
ISBN-13: 
9781800204621

Learn

Develop custom Drupal 9 modules using expert techniques
Master numerous Drupal 9 subsystems and APIs as you develop modules
Get to grips with modeling, storing, manipulating, and processing data for effective data management
Display data and content cleanly and securely using the Drupal 9 theme system
Test your business logic to prevent regression
Stay ahead of the curve and write PHP code by implementing best practices

About

Drupal is an open source content management system that empowers millions of independent developers and organizations with end-to-end website solutions. Updated to include the new functionalities introduced in Drupal 9, this third edition of the Drupal Module Development guide will help you to stay on top of code deprecation and the changing architecture of Drupal with each new 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. This Drupal guide will take you through different kinds of data storage before helping you 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, 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!

Features

  • Explore a plethora of Drupal 9 APIs and get the best out of them using PHP programming
  • Create modules for efficient data management, security, and much more in your Drupal sites
  • Discover best practices for transitioning from legacy Drupal 7 and Drupal 8 APIs to Drupal 9

Comments

nofue’s picture

We've bought most of Packt library for Drupal and pretty much all was sub PAR, to put it nicely. As a typesetter, I can tell how careless production was done. F.e. closing brackets which are put on the fold on top of the next page.
Or "let's create a .module file and place an opening PHP tag att the top". Nicely said, but in the code listing the opening tag is missing. Because the author's prose is really embarrasing we got straight to the code just to find that the listings weren't complete.

Easy to overlook, tons of headaches. Senseless sentences, like "And that's pretty much about it." Actually, there was more about it, but the author didn't get into it. We paid 38,99 Euros, and I consider it a complete waste of money. Google searches yield better results.The teaching style of these books is 19th century, errors are plenty and I've given up submitting errata at some time as the whole Packt experience wasn't compelling at all.

If quality hasn't changed tremendously since the © 2017 Edition of this book, it's not recommendable.

Norbert

-- form follows function

saqibsarwar’s picture

I have started learning Drupal development last month and before starting with this book I wasted a lot of time with other resources like drupalize[dot]me but the information is not logically well structured in such resources and it could be hard for a beginner to understand the concepts quickly.

But this book is really helping me as the information is very well organized from the developer's point of view.

I will try to share more feedback after going through it in full.