Add a library for parsing Drupal-managed menus#6
Add a library for parsing Drupal-managed menus#6gabesullice wants to merge 35 commits intojsdrupal:mainfrom
Conversation
…e the object re-iterable.
This reverts commit c916948.
|
@gabesullice Not sure how the workflow is for this project, but did you actually intend to commit |
Ha... yes. That's keeps coming up 😅
I am not married to the idea. If you are moving the code elsewhere and it's troublesome, feel free to remove it. |
|
@gabesullice well maybe might be nice idea to include that in the readme.md as contribution/development guide. I am trying to run test and have no issues running them inside Am not sure how to get them test running. Are you facing same issues? |
This adds some Drupal-specific assumptions on top of #4 to provide utilities for interpreting menus. Namely, it "tree-ifies" the results.
Here's some simple code that demonstrates the API (assume
responseJSONis the object defined here):