Paragraphs is a powerful and popular contributed module for creating dynamic pages in Drupal 8. Preprocessing allows us easily to create and alter render arrays to generate tailored markup for any paragraphs type.
In this session you will learn about:
- Getting started with preprocessing paragraphs and structuring your preprocessing methods.
- Creating custom render arrays and overriding twig templates.
- Referencing nested entities and pulling data into paragraph twig templates.
- How to debug your preprocessing and twig files using contributed modules or composer packages without running out of memory.
You'll leave this session ready to preprocess paragraphs and have a plan of action to reference when debugging any issues. This session is perfect for site-builders or back/front-end devs that are new to preprocessing in Drupal 8 and Twig.
Larry WalangitanSenior Developer @ Chromatic
I am a senior developer and technical PM at Chromatic, building and maintaining custom content management solutions using Drupal for enterprise clients. After hours you can walking my dog around town or trying out new recipes at home.