Edit this topic

Url layer rule context builder

: request

: widgets

: layer-rule-context-builder

: /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

UrlLayerRuleContextBuilder

Kind: global class

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'.

Kind: instance method of UrlLayerRuleContextBuilder

Param Type Description
context object The context.