Module Development

Concept: Entity API and Data Storage for Drupal 8, 9, and 10

Entities are the building blocks of Drupal's data structures. As module developers, the Entity API provides a way to manage custom data with minimal code. You'll use it when altering or enhancing existing content or when managing custom data sets. Instead of writing SQL, you'll be using the Entity API to manage data within a Drupal application.

In this tutorial, we'll:

  • Define entities and their significance in Drupal.
  • Distinguish between content entities and configuration entities.
  • Explore entity-related terminology such as bundles, fields, annotations, plugins, and handlers.

By the end of this tutorial, you'll have a foundational understanding of the Entity API and how it's used for data management in Drupal.

Drupal Module Developer Guide