11.0.x

Implement Any Hook

Last updated

Discover Existing Hooks

Last updated

Working with Entity CRUD

Last updated

Entity API Overview

Last updated

When learning Drupal development, it won't be long before you encounter the word "entity" and the Entity API. But what are entities in Drupal? How can you use them to build your site? When should you use the Entity API?

This tutorial will explain Drupal's Entity system from a high level. We'll look at:

Find Data with EntityQuery

Last updated

Entity API Implementation Basics

Last updated

Create a Custom Content Entity

Last updated

Dispatch an Event

Last updated

What Are Events?

Last updated

Drupal uses events to allow modules and various subsystems to communicate with one another in an object-oriented manner. Understanding how the Event API works is critical knowledge for all module developers. In this tutorial we'll:

  • Explain what events are
  • Discuss the use case for subscribing to events
  • Give an example use case for dispatching events

By the end of this tutorial you should be able to explain what events are, understand when to use them in your own code, and know where to learn more about how to do so.

Subscribe to an Event

Last updated