Drupal Twig and SDC: Tips for Building Flexible Component Libraries

Speakers

  • James Nettik

Two of Drupal's biggest improvements to the front-end have been the introduction of Twig in Drupal 8, and Single Directory Components (SDC) in Drupal 10. These tools offer an amazing level of flexibility for developers building out a component library. However it's not always clear the cleanest way to blend a standalone component library within a Drupal interface. The line between what is standard Twig and what Drupal layers on can also be equally blurry.

In this session we'll discuss tips, tricks, and best practices for working with Twig and SDC in Drupal. We'll also take a look at a handful of modules that make connecting Drupal data to theme components easier without bloating your theme with `.html.twig` files.