Edit this topic

Api fields alternates

: shell

: shape-handler

: api-documentation

: /modules/core/documentation/services/api-fields-alternates.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/documentation/services/api-fields-alternates.js

ShapeHandler

Adds text-scope, text-feature, url-source, text-path, and text-service to the alternates for the text fields of the same names on api-documentation items.

ShapeHandler.handle(context, done)

Adds text-scope, text-feature, text-path, url-source, and text-service to the alternates for the text fields of the same names on api-documentation items.

Param Type Description
context The context object.
context.shape object The shape to be handled.
context.scope object The scope.
done function the callback.