Cannot enable #gin_action_item for #type = link

Created on 30 July 2025, about 1 month ago

Problem/Motivation

The Content Lock module includes '#gin_action_item' => TRUE for its Unlock action, but this is ignored by Gin because its #type is link instead of submit.

Steps to reproduce

Install and configure the Content Lock module. Lock an entity. The Unlock button will be hidden in the actions dropdown.

Proposed resolution

Allow #type = link.

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

  • Issue created by @dieterholvoet
  • @dieterholvoet opened merge request.
  • I was able to apply the patch cleanly. After enabling/configuring the Content Lock module, I can confirm "Break lock" appears in the Actions dropdown in the content list.

  • 🇧🇪Belgium dieterholvoet Brussels

    You're misunderstanding the intention of the issue. This is about making sure that the 'Break lock' link does not appear in the dropdown of the sticky actions next to the title on the edit form, and instead it displays as an actual button. You're talking about the entity operations on the content overview.

  • 🇫🇮Finland Alexander Tallqvist

    We're running into the same proble running Drupal 11.1.8 and Gin 4.1.0. Posting patch for 4.1.0.

Production build 0.71.5 2024