Nearly every major component that makes up a Drupal site is an entity of one type or another, e.g. users, nodes, and blocks are all types of entities. All entities can then be customized by adding fields to them. Understanding how Drupal's Entity system works is fundamental to understanding the similarities and differences between the main components that make up a Drupal site. You can alter existing entity types to make them work more efficiently for your site, and it's also possible to create your own entity types to encapsulate the behavior of specific data structures within your application.
- Understand what components of a Drupal site are entities
- Understand the difference between configuration and content entities
- Know when, and how to create custom entities
At this point the Entities are relatively stable. Any major changes to the API at this point are likely to be new features, or slight changes in best practices as they emerge. The fundamentals and main components of the system are unlikely to change rapidly.
- Tutorials in this series walk through the basics of the Entity API system, working with and altering existing entities provided by Drupal core, and creating your own custom content entity type.
- This tutorial, a part of our configuration management series, introduces the concept of configuration entities. There are additional tutorials in the series that cover creating a configuration entity type of your own.
- This video covers the new features provided by the Entity API in Drupal 8. This video is a good high level overview of the different aspects of the Entity API in Drupal 8 compared to Drupal 7.
- Entities and fields are closely related and the boundaries between the two are often confused. It's generally a good idea to learn both in order to properly use either one.
- This is our complete series on the Entity API in Drupal 7.