You are here

public function RevisionTreeIndex::__construct in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Index/RevisionTreeIndex.php \Drupal\multiversion\Entity\Index\RevisionTreeIndex::__construct()

Constructs the Revision Tree Index.

Parameters

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value factory service.

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

\Drupal\multiversion\Entity\Index\MultiversionIndexFactory $index_factory: The index factory service.

File

src/Entity/Index/RevisionTreeIndex.php, line 57

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

public function __construct(KeyValueFactoryInterface $key_value_factory, WorkspaceManagerInterface $workspace_manager, MultiversionIndexFactory $index_factory) {
  $this->keyValueFactory = $key_value_factory;
  $this->workspaceManager = $workspace_manager;
  $this->indexFactory = $index_factory;
}