Add menu link providers to automatically provide menu links for entities

Created on 31 December 2021, almost 3 years ago
Updated 28 October 2024, about 2 months ago

Problem/Motivation

We can currently provide local tasks and local actions. However a menu link to the entity collection must be provided manually if needed, which is often the case.

Steps to reproduce

-

Proposed resolution

  • Add the concept of menu link providers similar to the local task and local action providers we already have
  • Add a menu link provider to provide a link to the entity collection on its (path-based) parent route

Note that this is step 3/4 of automatically generating all possible links for entities. The last one would be contextual links, but since those are less heavily used this would complete the automatic link generation for a lot of use-cases.

Remaining tasks

User interface changes

-

API changes

There are now entity menu link providers.

Data model changes

Feature request
Status

Needs work

Version

1.0

Component

Entity CRUD admin UI

Created by

🇩🇪Germany tstoeckler Essen, Germany

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany tstoeckler Essen, Germany

    Still want to get back to this just wanted to note that this needs to be adjusted to add a provider to the menu link. Otherwise MenuLinkDefaultForm blows up, unfortunately. The value should be the entity type provider.

Production build 0.71.5 2024