You are here

public function AccessManagerInterface::listRoles in Administer Users by Role 8.3

List all accessible roles for the specified operation.

Parameters

string $operation: The operation that is to be performed.

\Drupal\Core\Session\AccountInterface $account: The account trying to access the entity.

Return value

array of role IDs.

1 method overrides AccessManagerInterface::listRoles()
AccessManager::listRoles in src/Services/AccessManager.php
List all accessible roles for the specified operation.

File

src/Services/AccessManagerInterface.php, line 44

Class

AccessManagerInterface
Interface for access manager service.

Namespace

Drupal\administerusersbyrole\Services

Code

public function listRoles($operation, AccountInterface $account);