Edit this topic

Widget route handler

: request

: route-handler

: widgets

: /modules/core/widgets/services/widget-route-handler.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/widgets/services/widget-route-handler.js

WidgetRouteHandler()

A route handler that determines what widgets to render for this request.

widgetRouteHandler.handle(context, next)

Calls into layer stores and evaluates their rules in context, in order to determine what layers should be active for the current request. The widgets in those layers are then promised to be rendered.

Param Type Description
context object The context.
next function The callback.