You are here

public function TaskListBuilder::__construct in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/TaskListBuilder.php \Drupal\gdpr_tasks\TaskListBuilder::__construct()
  2. 3.0.x modules/gdpr_tasks/src/TaskListBuilder.php \Drupal\gdpr_tasks\TaskListBuilder::__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\Core\Entity\EntityStorageInterface $bundle_storage: The entity bundle storage class.

Overrides EntityListBuilder::__construct

File

modules/gdpr_tasks/src/TaskListBuilder.php, line 48

Class

TaskListBuilder
Defines a class to build a listing of Task entities.

Namespace

Drupal\gdpr_tasks

Code

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