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