You are here

public function WorkspacePointer::setWorkspaceId in Workspace 8

Sets the referenced workspace ID.

Parameters

int $workspace_id: The workspace id.

Return value

$this

Overrides WorkspacePointerInterface::setWorkspaceId

File

src/Entity/WorkspacePointer.php, line 98

Class

WorkspacePointer
Defines the Workspace pointer entity.

Namespace

Drupal\workspace\Entity

Code

public function setWorkspaceId($workspace_id) {
  $this
    ->set('workspace_pointer', $workspace_id);
  return $this;
}