- Issue created by @dgsiegel
Even though you can disable individual menu items and whole hierarchies through the "Enabled toggle", JSON:API Menu Items will only show enabled menu items in the JSON:API. That means that the enabled
field in the JSON:API output will always be set to true
.
The reason for this behaviour is the following line https://git.drupalcode.org/project/jsonapi_menu_items/-/blob/1.2.x/src/R... which ensures that only enabled menu items will be shown.
But there is value in letting the frontend choose how to handle enabled and disabled menus. At least I'd hope to have this configurable.
Active
1.2
Code