You are here

public function ProfileListBuilder::__construct in Profile 2 8

Constructs a new ProfileListController object.

Parameters

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

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

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

Overrides EntityListBuilder::__construct

File

src/ProfileListBuilder.php, line 42
Contains \Drupal\profile\ProfileListController.

Class

ProfileListBuilder
List controller for profiles.

Namespace

Drupal\profile

Code

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