function WorkspacePublishEvent::getWorkspace

Gets the workspace.

Return value

\Drupal\workspaces\WorkspaceInterface The workspace.

File

core/modules/workspaces/src/Event/WorkspacePublishEvent.php, line 50

Class

WorkspacePublishEvent
Defines the workspace publish event.

Namespace

Drupal\workspaces\Event

Code

public function getWorkspace() : WorkspaceInterface {
  return $this->workspace;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.