function 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\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.
\Drupal\workspaces\WorkspaceRepositoryInterface $workspace_repository: The workspace repository service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
Overrides EntityListBuilder::__construct
File
-
core/
modules/ workspaces/ src/ WorkspaceListBuilder.php, line 62
Class
- WorkspaceListBuilder
- Defines a class to build a listing of workspace entities.
Namespace
Drupal\workspacesCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, WorkspaceManagerInterface $workspace_manager, WorkspaceRepositoryInterface $workspace_repository, RendererInterface $renderer) {
parent::__construct($entity_type, $storage);
$this->workspaceManager = $workspace_manager;
$this->workspaceRepository = $workspace_repository;
$this->renderer = $renderer;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.