Feature: #90203 - Make workspace available in TypoScript conditions

See Issue #90203

Description

A new TypoScript expression language variable workspace has been added. It can be used to match a given expression against common workspace parameters.

Currently, the parameters workspaceId, isLive and isOffline are supported.

Examples

Match the current workspace id:

[workspace.workspaceId === 3]
    # Current workspace id equals: 3
[end]

Match against current workspace state:

[workspace.isLive]
    # Current workspace is live
[end]

[workspace.isOffline]
    # Current workspace is offline
[end]

Impact

The new feature allows matching against several workspace parameters within TypoScript.