~/talk

Creating Twig Extensions

TalkinSpanishat DrupalCamp Spain 2017 · 2017-05-05..05-06
slides:none on file

Shows how to create a custom Twig extension for Drupal to control field presentation from templates. Demonstrates using a Twig extension to solve common formatting needs such as currency fields (and other more complex cases) so presentation logic can be handled cleanly in templates.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14EASE OF FORMATTING FIELDS
  3. 1:56TWIG CORE EXTENSIONS
  4. 2:25CUSTOM EXTENSIONS
  5. 4:36Other examples
~/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.