Classes added through links.menu.yml aren't reflected in the toolbar

Created on 20 August 2025, 22 days ago

Problem/Motivation

When attributes are added in a .links.menu.yml file, they are not reflected in the Gin Admin Toolbar.

Steps to reproduce

  1. Create a new module (e.g., test_link) and add a test_link.links.menu.yml file with the following content:
    test_link.link:
      title: "New Link"
      url: "internal:#footer"
      menu_name: admin
      parent: system.admin
      options:
        attributes:
          class:
            - toolbar-icon-entity-webform-collection
      
  2. Enable the module and the gin_toolbar module.
  3. Check the new menu item in the Admin Toolbar. Notice that the class is not applied.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇧🇷Brazil hfernandes

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024