Needs work
Project:
Examples for Developers
Version:
5.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 May 2026 at 08:44 UTC
Updated:
8 May 2026 at 15:47 UTC
Jump to comment: Most recent
There are two example modules which shows how to define routes: menu_example and page_example. They both show how to create routes associated to controllers.
Replace those modules with the controller_example module, which shows how controllers are associated to routes in Drupal 11.4.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
avpaderno