WorkspaceAspect

final readonly class \TYPO3\CMS\Core\Context\WorkspaceAspect

Implements
AspectInterface

The aspect contains information about the currently accessed workspace.

Allowed properties:

  • id
  • isLive
  • isOffline

Table of Contents

Interfaces

AspectInterface
Interface AspectInterface Think of an aspect like a property bag

Methods

__construct()  : mixed
get()  : mixed
Fetch the workspace ID, or evaluated the state if it's 'online' or 'offline'
getId()  : int
Return the workspace ID
isLive()  : bool
Return whether this is live workspace or in a custom offline workspace

Methods

__construct()

public __construct([int $workspaceId = 0 ]) : mixed

Parameters

$workspaceId : int = 0

getId()

Return the workspace ID

public getId() : int

Return values

int

isLive()

Return whether this is live workspace or in a custom offline workspace

public isLive() : bool

Return values

bool
On this page