~/talk

Typed Data API let's try to understand it, finally...

Talkat Florida DrupalCamp 2023 · 2023-02-17..02-19· [php, web-platform]
links:none on file
slides:none on file

Explains how Drupal’s Typed Data API turns loose PHP values into structured, validated models by combining data definitions with data manager injection and reusable data type plugins, moving from Drupal 7’s ad hoc field handling to Drupal 8+ consistent modeling. Shows how definitions describe properties, managers inject keyed values into instances and attach constraints, how entity adapters wrap instances for content entities, and points to GitHub primitives and examples for validation and REST/JSON:API output so the approach is reproducible.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 3:51PHP variable types overview
  3. 8:26Problems in PHP 7
  4. 11:12Why TypeData API was created
  5. 16:02Understanding the API structure
  6. 18:33Creating data definitions
  7. 21:49Data definition examples
  8. 23:21Content entities and structure
  9. 25:08Identity adapters and entities
  10. 27:15Building on top of TypeData API
  11. 27:41Practical examples and resources
  12. 31:17Conclusion and Q&A
~/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.