You are here

Render Arrays Demystified

This site is for archival purposes only. 

Find out what is happening with the Twin Cities Drupal User Group at https://tcdrupal.org/

Track: 
Back-end Design & Development
Experience Level: 
Intermediate
Session Length: 
60 minutes

Render arrays are an important part of the Render API. They are associative arrays that contain data, properties, and sometimes other render arrays. You've probably used them extensively, but have you ever wondered how they work internally? Hint: the properties often dictate how the data should be formatted.

In this session we’ll examine the journey of a render array; we’ll talk about the difference between render arrays, element types, and form elements; we’ll look at Drupal 8’s repertory of element types; and you’ll learn how to create custom element types using OOP. After this session, you will be fluent in render array lingo.

If you are curious about how things work under-the-hood and have a particular interest in Drupal's rendering system, this session is for you.

Learning Objectives & Outcomes: 

The purpose of this session is to show you what render arrays, theme functions, and element types are. You'll also learn how to create custom element types using OOP.