CHAPTER 12

image

Anatomy of a Module

Although it is possible to build relatively complex Drupal 8 sites without ever having to look at the internals of a module, there may be instances where you’ll need to understand some of the inner workings of a module in order to fully take advantage of the features that the module provides. In this chapter I’ll take you on a high-level tour of what constitutes a module in Drupal 8 by walking you through the creation of a simple Drupal 8 module.

Your First Drupal 8 Module

Don’t worry, we’ll keep it simple! Our example module does only one thing, but it does it very well: display the text “Hello Drupal 8 World!” ...

Get Beginning Drupal 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.