11.0.x

Create a Settings Form for the Anytown Module

Last updated

Use a Service in a Plugin

Last updated

Add Cache Context and Tags to Renderable Arrays

Last updated

Create a Custom "Hello, World!" Block

Last updated

Concept: Render API

Last updated

Drupal's Render API plays a crucial role in how content is presented on a site. The Render API manages how content is rendered through render arrays and render elements.

In this tutorial, we'll:

Cache Data Retrieved from the Weather API

Last updated

Define a Weather Forecast Service

Last updated

Concept: Caching

Last updated

Caching is an essential piece of website performance and user experience. Drupal's Cache API enables you as a module developer to specify cacheability information for data rendered through the Render API. By storing previously calculated data or page renderings, Drupal can skip complex backend processes for subsequent requests and deliver content faster. Drupal's Cache API provides services to store, retrieve, and invalidate cached data.

In this tutorial, we'll:

Concept: Writing Secure Code

Last updated

In the world of Drupal development, ensuring the security of custom code is paramount. Drupal's security standards and features offer a robust foundation, but developers must also adhere to security best practices to safeguard against vulnerabilities. From sanitizing output to prevent cross-site scripting (XSS) attacks to using Drupal's database abstraction layer to avert SQL injection, Drupal empowers developers to write secure code. But it's still up to you, the developer, to do so.

In this tutorial, we'll:

Validate User Input for the Settings Form

Last updated