function WorkspaceOperationFactory::getPublisher

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getPublisher()
  2. 8.9.x core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getPublisher()
  3. 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 32

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, $this->eventDispatcher, $source, $this->logger);
}

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