Last updated August 1, 2016

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