Best practices for integrating components with Drupal 8 or 9

Mario Hernandez


Building reusable components in a design system such as Pattern Lab is only half the job. The second half is to seamlessly integrate those components with Drupal. There are several approaches to accomplishing this in a Drupal 8, or 9, website. In this session, I will walk you through integrating components using the Presenter Template approach while adhering to Drupal's best practices for caching, render arrays, and performance. I will build a component in Pattern lab and ensure it provides mechanisms for leveraging Drupal's attributes, title_prefix, and title_suffix. By the end of this session, you will have a component fully integrated and rendered in Drupal with a single source of truth for markup, styles, and JavaScript,

https://2020.badcamp.org/session/best-practices-integrating-components-drupal-8-or-9

Drupal is a registered trademark of Dries Buytaert.