Backend and Infrastructure

Add a Local Task Link in a Module for Drupal 8, 9, and 10

Local task links are the tabs you see when logged in as an administrator viewing a node on a Drupal site. In this tutorial we'll take a look at how local tasks are added within a custom module. We'll also see how to alter local tasks provided by other modules via hook_menu_local_tasks_alter().

Drupal Module Development