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

Command icon 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

brianperry created an issue. See original summary.

brianperry’s picture

Priority: Normal » Major
brianperry’s picture

Issue summary: View changes
brianperry’s picture

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.

coby.sher made their first commit to this issue’s fork.

brianperry’s picture

Status: Active » Needs work

Posted a comment on the MR. I think the content looks good, but just needs a different home so it doesn't get lost.

  • brianperry committed 182d863 on 1.0.x authored by coby.sher
    Issue #3243572 by coby.sher, brianperry: Document how to use getObject...
brianperry’s picture

Title: getMenu Method » Document jsonapi_menu_items support
Component: Code » Documentation
Issue summary: View changes
Status: Needs work » Fixed

Adjusted 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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.