public function WorkspacePointer::setWorkspace in Workspace 8
Sets the Workspace this pointer references.
Parameters
\Drupal\multiversion\Entity\WorkspaceInterface $workspace:
Return value
$this The called Workspace pointer entity.
Overrides WorkspacePointerInterface::setWorkspace
File
- src/
Entity/ WorkspacePointer.php, line 90
Class
- WorkspacePointer
- Defines the Workspace pointer entity.
Namespace
Drupal\workspace\EntityCode
public function setWorkspace(WorkspaceInterface $workspace) {
$this
->set('workspace_pointer', $workspace
->id());
return $this;
}