interface WorkspaceManagerInterface in Multiversion 8
Hierarchy
- interface \Drupal\multiversion\Workspace\WorkspaceManagerInterface
Expanded class hierarchy of WorkspaceManagerInterface
All classes that implement WorkspaceManagerInterface
12 files declare their use of WorkspaceManagerInterface
- AliasStorage.php in src/
AliasStorage.php - BlockManager.php in src/
Block/ BlockManager.php - CacheBackendDecorator.php in src/
CacheBackendDecorator.php - DeletedWorkspaceQueue.php in src/
Plugin/ QueueWorker/ DeletedWorkspaceQueue.php - EntityIndex.php in src/
Entity/ Index/ EntityIndex.php
File
- src/
Workspace/ WorkspaceManagerInterface.php, line 7
Namespace
Drupal\multiversion\WorkspaceView source
interface WorkspaceManagerInterface {
/**
* @param \Drupal\multiversion\Workspace\WorkspaceNegotiatorInterface $negotiator
* @param int $priority
*/
public function addNegotiator(WorkspaceNegotiatorInterface $negotiator, $priority);
/**
* @param string $workspace_id
*/
public function load($workspace_id);
/**
* @param array|null $workspace_ids
*/
public function loadMultiple(array $workspace_ids = NULL);
/**
* @param string $machine_name
*/
public function loadByMachineName($machine_name);
/**
* Fetches the currently active workspace entity.
*
* @return \Drupal\multiversion\Entity\WorkspaceInterface
* The active workspace entity.
*/
public function getActiveWorkspace();
/**
* Fetches the currently active workspace ID.
*
* @return int
* The active workspace ID.
*/
public function getActiveWorkspaceId();
/**
* Sets the active workspace for the site/session.
*
* @param \Drupal\multiversion\Entity\WorkspaceInterface $workspace
* The workspace to set as active.
*
* @return \Drupal\multiversion\Workspace\WorkspaceManagerInterface
*
* @throws WorkspaceAccessException
*/
public function setActiveWorkspace(WorkspaceInterface $workspace);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WorkspaceManagerInterface:: |
public | function | 1 | |
WorkspaceManagerInterface:: |
public | function | Fetches the currently active workspace entity. | 1 |
WorkspaceManagerInterface:: |
public | function | Fetches the currently active workspace ID. | 1 |
WorkspaceManagerInterface:: |
public | function | 1 | |
WorkspaceManagerInterface:: |
public | function | 1 | |
WorkspaceManagerInterface:: |
public | function | 1 | |
WorkspaceManagerInterface:: |
public | function | Sets the active workspace for the site/session. | 1 |