For my GSoC project i need some new content type for hold events. After reading some books i guess i need to declare new entity type for calendar events.
It’s generally not necessary to create a new entity type. Nodes are still extremely
flexible, and more often than not can handle whatever use case we need. However,
there are cases where it is necessary to create separate entities rather than separate
node types, like for instance:
- We may need entities that have entirely different permission handling or workflow than nodes, such as products in an e-commerce system.
- We may be accessing entities that are not stored in Drupal’s local database,such as a legacy data store.
- We may need to have internal variants, like node types, but nodes don’t support “sub-type types”.
The Schema API allows database-agnostic definition and manipulation of
the tables in Drupal’s SQL database.