public function WorkspaceOperationFactory::getPublisher in Drupal 9
Same name and namespace in other branches
- 8 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\workspacesCode
public function getPublisher(WorkspaceInterface $source) {
return new WorkspacePublisher($this->entityTypeManager, $this->database, $this->workspaceManager, $this->workspaceAssociation, $source);
}