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\EntityCode
public function getWorkspaceId() {
return $this
->get('workspace_pointer')->target_id;
}