You are here

public function WorkspacePointer::getWorkspace in Workspace 8

Returns the referenced workspace entity.

Return value

\Drupal\multiversion\Entity\WorkspaceInterface The workspace entity.

Overrides WorkspacePointerInterface::getWorkspace

2 calls to WorkspacePointer::getWorkspace()
WorkspacePointer::generateReplicationId in src/Entity/WorkspacePointer.php
WorkspacePointer::label in src/Entity/WorkspacePointer.php
@inheritDoc

File

src/Entity/WorkspacePointer.php, line 106

Class

WorkspacePointer
Defines the Workspace pointer entity.

Namespace

Drupal\workspace\Entity

Code

public function getWorkspace() {
  $ws = $this
    ->get('workspace_pointer')->entity;
  return $ws;
}