When:
to
Room:
Room 306-307
Track:
SVG
training

Introduction to Drupal Module Development

Introduction to Drupal Module Development

Module development for Drupal is more powerful than ever with Drupal 10. Object-orientation, the maturity of Drupal's various APIs, Drupal's underlying Symfony (and other) components, and the emergence of Drush's "generate" command means that developing for Drupal is more powerful than ever. This workshop is designed to introduce existing Drupal developers as well as (non-Drupal) PHP developers to some of the techniques and concepts for Drupal module development. The workshop includes an overview of some of the main concepts and tools as well as several hands-on module development exercises designed to build knowledge and confidence.

Learning Objectives

- An understanding of the basic concepts that comprise Drupal module development.
- An understanding of the basic tools that can be used to create Drupal modules including a code editor and Drupal Console.
- The creation of a simple "Hello, world" custom module.
- The creation of an "HTML5 Audio" module that provides a custom field formatter for fields of type "link".
- The creation of a "User blocker" module that provides a mechanism for privileged users to block site users by username.


Prerequisites

PHP and local development environments.

Synopsis

This workshop is designed to provide an overview of some of the concepts in module development for Drupal 10, with an emphasis on leveraging Drush's "generate" command. During the workshop, students will create three custom modules involving various APIs, plugins, and hooks.