You are here

abstract class WorkspaceNegotiatorBase in Multiversion 8

Hierarchy

Expanded class hierarchy of WorkspaceNegotiatorBase

File

src/Workspace/WorkspaceNegotiatorBase.php, line 10

Namespace

Drupal\multiversion\Workspace
View source
abstract class WorkspaceNegotiatorBase implements WorkspaceNegotiatorInterface, ContainerAwareInterface {
  use ContainerAwareTrait;

  /**
   * @var \Drupal\Core\Session\AccountInterface
   */
  protected $currentUser;

  /**
   * @var \Drupal\multiversion\Workspace\WorkspaceManagerInterface
   */
  protected $workspaceManager;

  /**
   * {@inheritdoc}
   */
  public function setCurrentUser(AccountInterface $current_user) {
    $this->currentUser = $current_user;
  }

  /**
   * {@inheritdoc}
   */
  public function setWorkspaceManager(WorkspaceManagerInterface $entity_manager) {
    $this->workspaceManager = $entity_manager;
  }

  /**
   * {@inheritdoc}
   */
  public function persist(WorkspaceInterface $workspace) {
    return TRUE;
  }

}

Members