Drupal 8 Theme System: hook_theme() to Twig template

Session Speaker(s): 
Cottserjoelpittet
Sunday, November 9 2014
Room: Bowser’s Castle
Time: 3:30pm - 4:30pm

Slides: http://drupaltwig.github.io/ThemeSystemBadCamp2014

The Twig templating engine is in Drupal 8 and has generated a lot of excitement. Many passionate contributors have stepped up during the Drupal 8 development cycle to not only convert Drupal’s markup to Twig but also clean up and simplify the theme system as a whole. But what does all this mean to you?

This session covers the state of Drupal 8's theme system. We'll talk about what's different from Drupal 7 but also walk through some of the internals of different aspects of the theme system and how they might affect your day-to-day work with Drupal. Many parts of the session are applicable to Drupal 7's theme system as well so you can use some of the knowledge right away.

We’re going to talk a lot about code and APIs and look at plenty of PHP, so an understanding of PHP basics will be helpful.

Topics include:

  • A high-level overview of the changes to the theme system in Drupal 8.
  • Some of the goodies that are possible now that we’re using Twig as our templating engine.
  • Using theme hook suggestions to cut down on custom code and have themers thanking you.
  • Phases of the theme system and where you can step in to alter things.
ALPHA BADCamp SPONSORS