You are here

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

Check access for the specified roles.

Parameters

array $roles: Roles of the user object to check access for.

string $operation: The operation that is to be performed on the user.

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

Return value

\Drupal\Core\Access\AccessResultInterface The access result. hook_entity_access() has detailed documentation.

1 method overrides AccessManagerInterface::access()
AccessManager::access in src/Services/AccessManager.php
Check access for the specified roles.

File

src/Services/AccessManagerInterface.php, line 31

Class

AccessManagerInterface
Interface for access manager service.

Namespace

Drupal\administerusersbyrole\Services

Code

public function access(array $roles, $operation, AccountInterface $account);