By Anarkia333 |

Build and customize powerful Drupal modules to extend your website's functionalities with this comprehensive guide

Purchase of the print or Kindle book includes a free PDF eBook

Key Features

  • Explore the new features and improved capabilities of Drupal 10 core
  • Discover Drupal APIs and elevate your proficiency by leveraging PHP coding
  • Implement efficient data management and data security by creating dedicated modules

Book Description

Embark on a journey of Drupal module development with the latest edition of this must-have guide written by Daniel Sipos – a Drupal community member! This fourth edition is meticulously revised to cover the latest Drupal 10 enhancements that will help you build custom Drupal modules with an understanding of code deprecations, changing architecture, data modeling, multilingual ecosystem, and so on.

You'll begin with understanding the core components of Drupal 10 architecture, discovering its subsystems and unlocking the secrets of creating your first Drupal module. Further, you'll delve into Drupal logging and mailing systems, creating theme hooks, and rendering a layout. As you progress, you'll work with different types of data storage, custom entities, field types, and work with Database APIs for lower-level database queries. You'll learn to reap the power of JavaScript and ensure that your code works seamlessly on multilingual sites. You'll also learn to create custom views, automate tests for your functionalities, and write secure code for your Drupal apps.

By the end of this book, you'll have gained confidence in developing complex modules that can solve even the most complex business problems and might even become a valuable contributor to the Drupal community!

What you will learn

  • Gain insight into the Drupal 10 architecture for developing advanced modules
  • Master different Drupal 10 subsystems and APIs
  • Optimize data management by modeling, storing, manipulating, and processing data efficiently
  • Present data and content cleanly and securely using the theme system
  • Understand helpful functions while dealing with managed and unmanaged files
  • Ensure your Drupal app has business logic integrity with automated testing
  • Implement secure coding in Drupal

Who this book is for

If you are a Drupal developer looking to create custom modules for Drupal sites and cater business needs, this book is the one-stop solution for you. Drupal 10 Module Development will be helpful for Drupal site builders and PHP developers with basic object-oriented programming skills, looking to upskill themselves in Drupal module development. A basic working experience with Symfony will be helpful but not mandatory.

Table of Contents

  1. Developing for Drupal
  2. Creating your First Module
  3. Logging and Mailing
  4. Theming
  5. Menus and Menu Links
  6. Data Modeling and Storage
  7. Your Own Custom Entity and Plugin Types
  8. The Database API
  9. Custom Fields
  10. Access Control
  11. Caching
  12. JavaScript and the Ajax API
  13. Internationalization and Languages
  14. Batches, Queues, and Cron
  16. Working with Files and Images
  17. Automated Testing
  18. Drupal 10 security