Problem/Motivation
Document the configuration necessary for Drupal State to source data from json_api_menuitems endpoints.
> Hmm… we might actually be able to reduce the scope of this. If we add the jsonapi_hypermedia module as a dependency, the jsonapi_menu_items endpoints will be added to the jsonapi index: https://www.drupal.org/project/jsonapi_menu_items/issues/3205065 we can then use getObject to get menu data.
Remaining tasks
* Documentation updates
Issue fork drupal_state-3243572
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
brianperryComment #3
brianperryComment #4
brianperryHmm… we might actually be able to reduce the scope of this. If we add the jsonapi_hypermedia module as a dependency, the jsonapi_menu_items endpoints will be added to the jsonapi index: https://www.drupal.org/project/jsonapi_menu_items/issues/3205065 we can then use getObject to get menu data.
Comment #7
brianperryPosted a comment on the MR. I think the content looks good, but just needs a different home so it doesn't get lost.
Comment #9
brianperryAdjusted the title and summary here, as the work was mainly to document how json_api_mennu items can be used with the existing library. An entry was added under 'common use cases' here: https://project.pages.drupalcode.org/drupal_state/en/getting-menu-items/
Some of the summary content here was also ported over to the issue for supporting the upcoming core menu endpoint: https://www.drupal.org/project/drupal_state/issues/3273354