You are here

public function WorkspaceListBuilder::__construct in Workspace 8.2

Same name and namespace in other branches
  1. 8 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\workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

Overrides EntityListBuilder::__construct

File

src/WorkspaceListBuilder.php, line 36

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;
}