Last updated July 26, 2017
Theming8.3.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