Edit this topic

Url layer rule context builder

: request

: layer-rule-context-builder

: widgets

: /modules/core/widgets/services/url-layer-rule-context-builder.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/widgets/services/url-layer-rule-context-builder.js

class: UrlLayerRuleContextBuilder

new UrlLayerRuleContextBuilder()

A layer rule context builder that exposes the current URL to layer rules.

urlLayerRuleContextBuilder.buildContext(context)

Adds the current URL to the context under the name 'url'.

Param Type Description
context object The context.