Exposing menu link view mode

Created on 8 May 2025, 28 days ago

Problem/Motivation

In some use cases, especially when rendering menus in a headless Drupal setup, site builders and frontend applications need to know the view_mode associated with each menu link (for example, to determine how to render linked content or components differently in various menu contexts). Currently, the graphql schema does not expose this view_mode information on MenuItem objects.

Benefits

  • Adds support for exposing view_mode on menu links in headless applications
  • Improves flexibility for frontend rendering logic
  • Cleanly integrates with graphql compose architecture
Feature request
Status

Active

Version

2.3

Component

Code

Created by

🇧🇪Belgium britt.vanderlinden

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

Comments & Activities

Production build 0.71.5 2024