public function RoleAccessProvider::getAuthorizedEntityIds in Role Access Control 8.2
File
- src/
Plugin/ adva/ AccessProvider/ RoleAccessProvider.php, line 40
Class
- RoleAccessProvider
- Role Access Provider for Advanced Access.
Namespace
Drupal\rac\Plugin\adva\AccessProviderCode
public function getAuthorizedEntityIds($operation, AccountInterface $account) {
// A user should be authorized to access content for any roles they have.
return $account
->getRoles();
}