9.5.x/10.0.x

Install Drupal Locally with DDEV

Last updated

Installing Drupal using the instructions in this tutorial will give you a working Drupal site that can be used for learning, or real-world project development.

Before you can work on a Drupal site locally (on your computer), you'll need to set up a local development environment. This includes all the system requirements like PHP and a web server, that Drupal needs in order to run. Our favorite way to accomplish this is using DDEV.

In this tutorial we'll learn:

Theming Drupal Forms with Twig

Last updated

Return JSON, Plain Text, and Other Non-HTML Responses

Last updated

How Drupal Turns a Request into a Response

Last updated

Use Parameters in a Route

Last updated

Set a Dynamic Title for a Route

Last updated

Add Access Checking to a Route

Last updated

Overview: Parameters and Value Upcasting in Routes

Last updated

Create a Route and Controller

Last updated

Overview: Routes, Controllers, and Responses

Last updated

Do you know some PHP and want to learn how to create a custom page at a custom URL in Drupal? You're in the right place.

Every web framework has the same job: provide a way for developers to map user-accessible URLs with code that builds the page. Routes, controllers, and responses are what module developers use to create pages at custom URLs in a Drupal site.

In this tutorial, we'll: