You are here

public function RoleListBuilder::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/RoleListBuilder.php \Drupal\user\RoleListBuilder::__construct()
  2. 9 core/modules/user/src/RoleListBuilder.php \Drupal\user\RoleListBuilder::__construct()

RoleListBuilder constructor.

Parameters

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

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

Overrides DraggableListBuilder::__construct

File

core/modules/user/src/RoleListBuilder.php, line 37

Class

RoleListBuilder
Defines a class to build a listing of user role entities.

Namespace

Drupal\user

Code

public function __construct(EntityTypeInterface $entityType, EntityStorageInterface $storage, MessengerInterface $messenger) {
  parent::__construct($entityType, $storage);
  $this->messenger = $messenger;
}