getExpressionLabel()

Overview

public string function getExpressionLabel(
      required string expressionId
    ,          string context      = ""
    ,          string objectName   = ""
)

Returns a translated label for the given expression ID. The label is shown when rendering the expression in the list of optional expressions to use for the administrator. e.g.

User is logged in

Arguments

NameTypeRequiredDescription
expressionIdstringYesID of the expression, e.g. "loggedIn.global"
contextstringNo (default="")Optional context in which the expression is being used
objectNamestringNo (default="")Optional object name for which a filter is being applied that uses this expression