drupal_linkset_menu

Creator: coderz1093

Last updated:

0 purchases

drupal_linkset_menu Image
drupal_linkset_menu Images

Languages

Categories

Add to Cart

Description:

drupal linkset menu

drupal_menu #
A Flutter package that parses application/linkset+json mimetype and generates a Menu Object. (Primarily intended to be used for Drupal Decoupled Menus Module)
Using #
The easiest way to use this library is via the provided functions
With an ApiUrl
import 'package:drupal_linkset_menu/drupal_linkset_menu.dart';
String menu = "main";
String apiURL = 'http://localhost:50915/system/menu/${menu}/linkset';
Menu menu = await getDrupalMenuFromURL(apiURL, menu);
copied to clipboard
With a JSON string
import 'package:drupal_linkset_menu/drupal_linkset_menu.dart';
String menu = "footer";
String json = '{"linkset":[{"anchor":"\/system\/menu\/footer\/linkset","item":[{"href":"\/contact","title":"Contact","drupal-menu-hierarchy":[".000"],"drupal-menu-machine-name":["footer"]}]}]}';
Menu menu = await getDrupalMenuFromJSON(menu, json);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.