Module Development

Concept: Menu Items and Links for Drupal 8, 9, and 10

Drupal offers module developers several methods for creating different types of links, all defined by module configuration. This tutorial explores these types of links, how they relate to each other, and when to use them.

In this tutorial, we'll learn:

  • The nature of menu items, action links, and local task links.
  • Examples of each link type in Drupal's UI and their application in our scenario.
  • Criteria for selecting the appropriate link type for adding the weather page to site navigation.

By the end of this tutorial, you'll understand the different types of links in Drupal and how they apply to adding navigational elements for custom module pages.

Drupal Module Developer Guide