You are here

public function WorkspaceOperationFactory::getPublisher in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getPublisher()
  2. 10 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getPublisher()

Gets the workspace publisher.

Parameters

\Drupal\workspaces\WorkspaceInterface $source: A workspace entity.

Return value

\Drupal\workspaces\WorkspacePublisherInterface A workspace publisher object.

File

core/modules/workspaces/src/WorkspaceOperationFactory.php, line 85

Class

WorkspaceOperationFactory
Defines a factory class for workspace operations.

Namespace

Drupal\workspaces

Code

public function getPublisher(WorkspaceInterface $source) {
  return new WorkspacePublisher($this->entityTypeManager, $this->database, $this->workspaceManager, $this->workspaceAssociation, $source);
}