Drupal 8 Module Development: Build modules and themes using the latest version of Drupal 8, 2nd Edition

Create and customize impressive Drupal 8 modules to extend your website's functionalitiesKey FeaturesCreate and customize impressive Drupal 8 modules to extend your website's functionalitiesImplement efficient data management and data security by creating dedicated modulesStay up to date with the changes introduced in the new Drupal 8 releaseBook DescriptionDrupal 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 learnDevelop custom Drupal 8 modules to provide solutions for complex business problemsMaster numerous Drupal 8 subsystems and APIs in the processModel, store, manipulate, and process data to serve your purposesDisplay data and content in a clean and secure way using the Drupal 8 theme systemTest your business logic to prevent regressionsStay ahead of the curve and write code following the current best practicesWho this book is forIf 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 ContentsDeveloping for Drupal 8Creating Your First ModuleLogging and MailingThemingMenus 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 8 Security

Author: Daniel Sipos

Learn more