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

Public Member Functions

 getWorkspaceId ()
 
 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()

TYPO3\CMS\Core\DataHandling\Model\EntityContext::getLanguageId ( )

◆ getWorkspaceId()

TYPO3\CMS\Core\DataHandling\Model\EntityContext::getWorkspaceId ( )

◆ withLanguageId()

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

Definition at line 62 of file EntityContext.php.

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

◆ withWorkspaceId()

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

Definition at line 44 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