Drupal 8 Preview: What You Need to Know about Entity and Field APIs

Possibly the most significant change from Drupal 7 to Drupal 8 for module developers is Drupal core's full embracing of OOP. Possibly the most significant change for site builders and maintainers will be Drupal's separation of configuration from the database. Together, these two changes have resulted in a complete reconceptualization and rewrite of Drupal's Entity and Field APIs, with quite a bit of that rewrite still in progress. Although this means there's new stuff to learn, these new APIs have enabled far more consistency and code reuse throughout Drupal core, and hopefully will do the same for contrib.

In this webinar, we'll highlight the key concepts, interfaces, and classes that form these APIs, and show how modules can use them. In doing so, we'll explain:

  • The similarities and differences between configuration entities and content entities.
  • The similarities and differences between configurable fields and non-configurable fields.
  • The lifecycle of an entity and the hooks invoked along the way.
  • How to implement entity types, field types, and stuff that acts on them.