You are here

interface WorkspaceManagerInterface in Multiversion 8

Hierarchy

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

... See full list

File

src/Workspace/WorkspaceManagerInterface.php, line 7

Namespace

Drupal\multiversion\Workspace
View 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

Namesort descending Modifiers Type Description Overrides
WorkspaceManagerInterface::addNegotiator public function 1
WorkspaceManagerInterface::getActiveWorkspace public function Fetches the currently active workspace entity. 1
WorkspaceManagerInterface::getActiveWorkspaceId public function Fetches the currently active workspace ID. 1
WorkspaceManagerInterface::load public function 1
WorkspaceManagerInterface::loadByMachineName public function 1
WorkspaceManagerInterface::loadMultiple public function 1
WorkspaceManagerInterface::setActiveWorkspace public function Sets the active workspace for the site/session. 1