Decoupled Kit allows to solve some tasks of the decoupled Drupal:

  • Object
  • Get entity object link for current page using JSON:API and/or Decoupled Kit Router

  • Block
  • Get blocks data for a current page. (parameters: current_theme, selected_regions). Keeps blocks visibility and weights.

  • Menu (ver 1.x)
  • Get menu data for a specified menu.

  • Taxonomy (ver 1.x)
  • Get taxonomy tree for specified vocabulary.

  • Sitemap (ver 1.x)
  • Get sitemap using the Decoupled Kit Menu and Decoupled Kit Taxonomy modules.

  • Breadcrumb (ver 1.x)
  • Get breadcrumbs for a current page. Included into the Block (ver 2.x)

  • Metatag (ver 1.x)
  • Metatag module integration. Get data for a current page.

  • Webform (ver 1.x)
  • Webform module integration. Get webform confirmation settings for submission ID. Recommend use the Webform rest module.

  • Redirect
  • Redirect module integration. Get redirect data for a current page.

  • Open API (ver 1.x)
  • Open API module integration.

Output

The submodules created routes with JSON output.

Submodule Field data Other fields
Decoupled Kit Object No Field link may has JSON:API or Decoupled Kit Router link.
Decoupled Kit Block Block data or link to block data Field link may has JSON:API link.
Decoupled Kit Menu Menu data No
Decoupled Kit Taxonomy Taxonomy data No
Decoupled Kit Sitemap No No
Decoupled Kit Breadcrumb Breadcrumb data No
Decoupled Kit Metatag Metatag data from metatag module No
Decoupled Kit Webform Webform confirmation settings No
Decoupled Kit Redirect Redirect string or array No

Parameters

Submodule Need ?path Use ?mode Need parameter (id)
Decoupled Kit Object Yes No No
Decoupled Kit Block Yes link|data No
Decoupled Kit Menu No No Menu ID
Decoupled Kit Taxonomy No plain|tree Vocabulary ID
Decoupled Kit Sitemap No No No
Decoupled Kit Breadcrumb Yes No No
Decoupled Kit Metatag Yes No No
Decoupled Kit Webform No No Submission ID
Decoupled Kit Redirect Yes simple|full|final No

How it works

  1. Check for redirect (Decoupled Kit Redirect)
  2. Get entity link (Decoupled Kit Object) using JSON:API and/or Decoupled Kit Router
  3. Use layout (Decoupled Kit Block, Decoupled Kit Menu, Decoupled Kit Breadcrumb, Decoupled Kit Taxonomy)
  4. Use webform (Decoupled Kit Webform)
  5. SEO features (Decoupled Kit Metatag, Decoupled Kit Sitemap)
  6. Use Open API for documentation (Decoupled Open API)

Usage example

https://github.com/cooldrupal/next-drupal-decoupled-kit-blog

Sponsorship

...have a feature you'd like to sponsor? Get in touch

Project information

Releases