function RoleListBuilder::__construct

Same name in other branches
  1. 9 core/modules/user/src/RoleListBuilder.php \Drupal\user\RoleListBuilder::__construct()
  2. 8.9.x core/modules/user/src/RoleListBuilder.php \Drupal\user\RoleListBuilder::__construct()
  3. 10 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;
}

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