Show Hide Menu based user location

Created on 22 September 2024, 3 months ago

Problem/Motivation

Hi Everyone, I have a scenario where I have a custom menu> Test > Child 1> Child 2> Child 3> Child 4> Child 5. These childs are dynamic. Childs are created whenever we save a node of type notify. Now this node has a location field and user also has location field.
My requirement is whenever user login to the application, he should see the Childs whose location is same as user location.

I have tried to use hook_preprocess_menu but when I dump its showing in admin login.But same dump is not working in customer user login.

Please provide me a solution. Thank you!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

10.3

Component

menu system

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

Comments & Activities

Production build 0.71.5 2024