Create and customize impressive Drupal 8 modules to extend your website's functionalities
Key Features
- Create and customize impressive Drupal 8 modules to extend your website's functionalities
- Implement efficient data management and data security by creating dedicated modules
- Stay up to date with the changes introduced in the new Drupal 8 release
Book Description
Drupal 8’s release cycle allows for new functionality to be introduced at a much faster pace. However, this also means code deprecations and changing architecture that you need to stay on top of. This new edition of Drupal 8 Module Development has been fully updated to reflect the new functionality introduced in Drupal versions up to and including 8.7.
Starting with an introduction to Drupal 8 architecture and its subsystems, this book will guide you in creating your first module with basic functionality. You’ll work with Drupal logging and mailing systems, learn how to output data using the theme layer, and work with menus and links programmatically. This Drupal book demonstrates how to work with different kinds of data storages, create custom entities and field types, and leverage the Database API for lower level database queries. Furthermore, you’ll learn how to introduce JavaScript into your module, work with different file systems, and ensure that the code you write works on multilingual sites. Toward the end, the book will help you work with Views, write automated tests for your functionality, and write secure code in general.
By the end of the book, you’ll have learned how to develop your own custom module that can provide complex business solutions, and who knows, maybe you’ll even contribute it back to the Drupal community!
Foreword by Dries Buytaert, founder of Drupal.
What you will learn
- Develop custom Drupal 8 modules to provide solutions for complex business problems
- Master numerous Drupal 8 subsystems and APIs in the process
- Model, store, manipulate, and process data to serve your purposes
- Display data and content in a clean and secure way using the Drupal 8 theme system
- Test your business logic to prevent regressions
- Stay ahead of the curve and write code following the current best practices
Who this book is for
If you’re a Drupal developer who wants to learn how to write modules and develop with Drupal 8, this book is for you. You’ll also find this book useful if you’re a Drupal site builder or PHP developer who has basic object-oriented programming skills. Though not necessary, some Symfony experience will be helpful.
Table of Contents
- Developing for Drupal 8
- Creating Your First Module
- Logging and Mailing
- Theming
- Menus and Menu Links
- Data Modeling and Storage
- Your Own Custom Entity and Plugin Types
- The Database API
- Custom Fields
- Access Control
- Caching
- JavaScript and the Ajax API
- Internationalization and Languages
- Batches, Queues, and Cron
- Views
- Working with Files and Images
- Automated Testing
- Drupal 8 Security