Last updated July 15, 2019
Theming8.7.x

Preprocess functions are specially named functions that allow themes and modules to perform additional manipulation of variables used in a Twig template file.

In this tutorial we'll learn how to:

  • Use preprocess functions in order to modify existing variables before they are used in a Twig template file