Creating Twig Extensions
summary
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
chapters (5)
- 0:00Introduction
- 1:14EASE OF FORMATTING FIELDS
- 1:56TWIG CORE EXTENSIONS
- 2:25CUSTOM EXTENSIONS
- 4:36Other examples
related talks
44mWhat the frontend? Get the most out of Twig, render arrays and D8's caching
45mTYPO3 Template Engine Integration Explained
43m[T]alking about [W]hat [I]s [G]reat about TWIG
57mWhen there's not a module for that
26mUsing Twig and Views to Create Friendly HTML E-newsletter Code
01h 01mDrupal 8 theme best practices - here's where we burried the bodies
17mDive deep into Drupal 8 Render API
34mExtending Extensions
