[WIP] How entities work in Drupal 8

dakala

In Drupal 8 world, we find different types of entities e.g. nodes, users, blocks, comments, vocabularies, taxonomy terms etc. It seems as if everywhere you look in the code, an entity jumps out at you. This talk attempts to look at how we got here and lay a foundation for understanding entities. It also dissects the process of providing custom entities through a code walkthrough.

A brief history of flexinode, CCK and fields
     - Early stages of making creation of content types less repetitive

A brief look at entities in Drupal 7
    - Introduction of Entity API in core
    - Entity API contrib module: "This module extends the entity API of Drupal core in order to provide a unified way to deal with entities and their properties. Additionally, it provides an entity CRUD controller, which helps simplifying the creation of new entity types."

How entity interfaces and classes are related in Drupal 8
    - Configuration entity: information about site
    - Content entity: information on site
    - Shared and different interfaces

Leveraging core to write custom entities
    - Prior to Drupal 8: "there's a module for that". Now:  "there's a class for that" 
    - Think more of annotations. Think less of hooks
    - Extend core classes and override methods

Attendees should have some experience with module development and at least a basic knowledge of Drupal 8. They should be interested in digging into the internals of the Drupal code base.

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version