~/talk

Component-based design using almost only Drupal Core

TalkinSpanishat DrupalCamp Spain 2022 · 2022-06-03..06-05· [drupal, component-design]
links:none on file
slides:none on file

Shows how to build reusable front-end components for Drupal 8/9 using mainly Drupal Core plus the Components! module, leveraging Twig features and ideas from the Radix theme (like asset auto-loading) to keep JS/CSS scoped per component and improve performance. Explains render arrays and theme hooks for beginners, and provides advanced techniques to create portable micro-libraries of CSS, Twig and JS that can be reused across projects, while briefly mentioning more complex approaches such as UI Patterns and Emulsify.

AI-written summary · about

  1. 0:00Introduction
  2. 1:44What is a component
  3. 4:38Component initiatives in Drupal
  4. 7:08Setting up a component
  5. 11:17Components in templates
  6. 13:25Extending components
  7. 16:38Components and entities
  8. 18:23Passing field values
  9. 21:28Delegating markup
  10. 23:33Components to Twig
  11. 27:23Real-world use case
  12. 31:17Acknowledgments
  13. 32:06Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.