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
Name | Type | Required | Description |
---|---|---|---|
expressionId | string | Yes | ID of the expression, e.g. "loggedIn.global" |
context | string | No (default="") | Optional context in which the expression is being used |
objectName | string | No (default="") | Optional object name for which a filter is being applied that uses this expression |