You are here

public function UserConsentListBuilder::__construct in Data Policy 8

Constructs a new UserConsentListBuilder object.

Parameters

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

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

Overrides EntityListBuilder::__construct

File

src/UserConsentListBuilder.php, line 37

Class

UserConsentListBuilder
Defines a class to build a listing of User consent entities.

Namespace

Drupal\data_policy

Code

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