You are here

public function WorkspacePointer::getWorkspaceId in Workspace 8

Returns the referenced workspace ID.

Return value

int|null The workspace ID, or NULL in case the workspace ID field has not been set on the entity.

Overrides WorkspacePointerInterface::getWorkspaceId

File

src/Entity/WorkspacePointer.php, line 114

Class

WorkspacePointer
Defines the Workspace pointer entity.

Namespace

Drupal\workspace\Entity

Code

public function getWorkspaceId() {
  return $this
    ->get('workspace_pointer')->target_id;
}