You are here

public function WorkspaceListBuilder::__construct in Workspace 8

Same name and namespace in other branches
  1. 8.2 src/WorkspaceListBuilder.php \Drupal\workspace\WorkspaceListBuilder::__construct()

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

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

Overrides EntityListBuilder::__construct

File

src/WorkspaceListBuilder.php, line 40

Class

WorkspaceListBuilder
Defines a class to build a listing of workspace entities.

Namespace

Drupal\workspace

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, WorkspaceManagerInterface $workspace_manager) {
  parent::__construct($entity_type, $storage);
  $this->workspaceManager = $workspace_manager;
}