11.0.x

What Are Render Arrays?

Last updated

Output Plain Text and Simple HTML Markup

Last updated

Output a Table

Last updated

Output Content with a Template File

Last updated

Render API Overview

Last updated

The Render API consists of two parts: structured arrays that provide data and hints about how that data should be rendered, and a rendering pipeline that can be used to render these arrays into various output formats. Understanding at least the basics of how the Render API works, the difference between elements and properties, and the concept of callback functions is an integral part of learning Drupal.

In this tutorial we'll:

What Are Render Elements?

Last updated

Render Pipeline

Last updated

Output a List of Items

Last updated

Use #prefix and #suffix Properties to Wrap an Element

Last updated

Use Render Element Types in a Render Array

Last updated