Let's try to understand Typed Data, finally...

drupalcon-barcelona-2024 Logo
24 Sep 2024, 7:00 am
45 Minutes

Typed Data API still remains quite a mystery for many. We need to get familiar with it in order to really know how entity data is modeled. In this session I'm going to get to the bottom of it, so please fasten your seatbelts and be ready to understand it. Finally...

Prerequisite
Attendees will get the most out of this session by being familiar with data modeling basics in Drupal.

Outline
I will quickly go over all the factors including PHP limitations and Drupal 7 historical problems that convinced the community that a low-level API was necessary.

We will learn some fascinating details about the process of implementation on Drupal.org. You will understand the motivations of contributors and why they named it TypedData.

Next stage will be looking under the hood. In an easy to consume way, you will see the most important moving parts there and how they work together.

Then finally we will be prepared to understand how content entity is modelled. I will take it apart and point out every place where TypedData is a foundation.

At the very end I'll demonstrate a few use cases to explain how you may use the API to simplify your coding or where you are already using it.

Learning Objectives
If you are curious:
- why and when the TypeData was introduced
- how content entities are build on top of it
- how to use it in day to day coding
please join the session so then you can apply the knowledge and be a better Drupal developer.

Other Sessions