~/talk

TypedData API let's try to understand it, finally...

Talkat DrupalCamp Poland 2023 · 2023-05-13..05-14· [web-platform, php]
links:none on file
slides:none on file

Typed Data API clarifies how entity data is modeled by replacing Drupal 7’s nested associative arrays with two pillars: plugins and definitions plus a type data manager that injects values. Core provides primitive plugins (string, integer, any) and composite ones like map data definition; content entities and field items extend those types. Example: JSON decoded into a definition becomes a typed instance with one line of manager code, enabling easy casting and validation.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:17Agenda and goals for the talk
  3. 3:47PHP variable types and loose typing issues
  4. 6:57Problems with Drupal 7 and need for TypeData
  5. 9:23Origin and purpose of TypeData API
  6. 12:35TypeData API overview and structure
  7. 16:02What is TypeData API and its use cases
  8. 17:37Core components: plugins, definitions, manager
  9. 24:48TypeData in content entities
  10. 29:16Plugin types in Drupal core
  11. 31:13Working with primitives and maps
  12. 32:26Real-world integration example
  13. 35:54Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.