Drupal 8 theming in depth

lauriii
Cottser

Drupal 8 uses Twig as its default templating engine. This has generated a lot of excitement but Twig isn't the only thing that has changed in the Drupal 8 theme system - Twig has been a tool that has allowed us to make many other changes.

In this presentation we will give an overview of how markup should be generated in Drupal 8. We will also walk through some of the changes that have made generating markup more complex and how to cope with them.

Topics in this session includes:
  • A high-level overview of the theme system in Drupal 8 and how Twig works in the backend

  • Twig basics, debugging, and how to create scalable templates

  • Using theme hook suggestions to cut down on custom code and have themers thanking you

  • How to become friends with autoescaping without losing security

Session Track

Front End

Experience Level

Intermediate

Drupal Version