Intro to Preprocess Functions for Frontend Developers

abbym
smira

Preprocess functions are immensely powerful - but what ARE they, besides something that looks suspiciously like back-end code lurking in your theme?

While preprocess functions may not fall under traditional front-end development, mastering their basics can give you better control over your markup, improve your site performance, and lead to a more more maintainable code base. In this workshop, we’ll cover:

 

  • The basic programming concepts behind preprocess functions, aimed specifically at those without back-end expertise
  • What preprocess functions can do, why you should bother, and how to decide if a task is better suited to preprocessing, Twig, or both
  • Plenty of real-world examples broken down to the fundamentals so you can adapt them for your own projects
  • Tips on debugging, knowing what hooks to start with, and navigating the Drupal API documentation

 

This talk is aimed primarily at front-end developers who wish to learn more about Drupal-specific theming concepts using PHP.

Program tags

front end development

Experience Level

Beginner

Drupal Version