Last updated October 29, 2018
Theming8.6.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