‪TYPO3CMS  10.4
TYPO3\CMS\Core\DataHandling\Model\EntityContext Class Reference

Public Member Functions

int getWorkspaceId ()
 
int getLanguageId ()
 

Static Public Member Functions

static withWorkspaceId (int $workspaceId)
 
static withLanguageId (int $languageId)
 

Protected Attributes

int $workspaceId = 0
 
int $languageId = 0
 

Detailed Description

Represents the context of an entity

A context defines a "variant" of an entity, currently by its language and workspace assignment. The EntityContext is bound to a RecordState.

Definition at line 26 of file EntityContext.php.

Member Function Documentation

◆ getLanguageId()

◆ getWorkspaceId()

int TYPO3\CMS\Core\DataHandling\Model\EntityContext::getWorkspaceId ( )
Returns
‪int

Definition at line 39 of file EntityContext.php.

References TYPO3\CMS\Core\DataHandling\Model\EntityContext\$workspaceId.

◆ withLanguageId()

static TYPO3\CMS\Core\DataHandling\Model\EntityContext::withLanguageId ( int  $languageId)
static
Parameters
int$languageId
Returns
‪static

Definition at line 70 of file EntityContext.php.

References TYPO3\CMS\Core\DataHandling\Model\EntityContext\$languageId.

◆ withWorkspaceId()

static TYPO3\CMS\Core\DataHandling\Model\EntityContext::withWorkspaceId ( int  $workspaceId)
static
Parameters
int$workspaceId
Returns
‪static

Definition at line 48 of file EntityContext.php.

References TYPO3\CMS\Core\DataHandling\Model\EntityContext\$workspaceId.

Member Data Documentation

◆ $languageId

int TYPO3\CMS\Core\DataHandling\Model\EntityContext::$languageId = 0
protected

◆ $workspaceId

int TYPO3\CMS\Core\DataHandling\Model\EntityContext::$workspaceId = 0
protected