function UserListBuilder::__construct

Same name in other branches
  1. 9 core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::__construct()
  2. 8.9.x core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::__construct()
  3. 11.x core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::__construct()

Constructs a new UserListBuilder 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.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

Overrides EntityListBuilder::__construct

File

core/modules/user/src/UserListBuilder.php, line 48

Class

UserListBuilder
Defines a class to build a listing of user entities.

Namespace

Drupal\user

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.