Drupal 10.1: Revisions tab appears twice on Storage Entities

Created on 26 June 2024, 6 months ago
Updated 27 June 2024, 6 months ago

Problem/Motivation

Drupal 10.1 expanded version history UI support for revisionable entities:

This adds a duplicated "Revisions" tab to entities created by modules that include their own local task in *.links.task.yml, as reported in other projects:

There is ongoing work aimed to fix this issue in Drupal 11:

Steps to reproduce

  • Add a storage type
  • Create and visit a storage entity
  • The Revisions tab appears twice

Proposed resolution

This can be fixed by unsetting the default local task by implementing hook_local_tasks_alter, or by removing the local task provided by the module in storage.links.task.yml.

Since revisions UI is now provided by Drupal, removing the task from the module offers a better long term solution.

The attached patch works with Storage 1.4, which requires Drupal => 10.1:

storage_duplicated_revisions_tab.patch

🐛 Bug report
Status

Active

Version

1.4

Component

User interface

Created by

🇨🇷Costa Rica rodericksandoval

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024