Theming Drupal 8 with Twig. A guide to template structure, inheritance and reducing reliance on modules
The introduction of Twig was a huge change for developers moving from Drupal 7 to Drupal 8. Many developers have yet to fully leverage its powerful syntax and semantics.
This one-hour session will teach you the ins and outs of Twig as it applies to Drupal 8. We will run through Twig filters and functions as well as covering complex theming solutions using conditional statements and loops. We will also touch on best practices for setting up template inheritance with Twig blocks and overiding or combining data from parent templates.
Session attendees will get a rundown on how to set up a multi-level navigation pattern using Twig macros. Attendees will also learn how to build out a social sharing widget that can be placed in any template while having no module dependencies.