Preprocess All The Things!

Speaker: Chris Wright

In this session we will discuss how to:

Retrieve needed variables and data using hook_preprocess functions to use this data in Twig templates.
Use the devel module and xdebug (briefly) to debug your code.
Set, adjust and view variables before they are printed on the page and briefly discuss HOOK_form_alters as well.
Create a render array, what that does and how to use this in Twig for rendering custom content.

https://www.flyovercamp.org/schedule/preprocess-all-things

Drupal is a registered trademark of Dries Buytaert.