Understanding Twig and Drupal Theme layer - Off loading Drupal

The session will focus on understanding Twig and its vast feature library. How in Drupal 8 theme layer Drupal has offloaded itself from PHP syntax to Twig. 

The session will also demonstrate how we can do almost everything in Drupal theming by exploiting Twig extensibility and flexibility.

The talk will cover -

  • Understanding Twig and its features (Functions filters and other API extensions)
  • How Drupal uses twig and how kint is useful.
  • How using Twig we can move almost every logic from preprocess function to template file in turn increasing the server side rendering performance.
  • Simple Twig demo to show power of twig