public function KeycloakRoleMatcher::hasRoleRules in Keycloak OpenID Connect 8
Whether there are defined Keycloak role rules.
Return value
bool TRUE, if rules were defined, FALSE otherwise.
File
- src/
Service/ KeycloakRoleMatcher.php, line 77
Class
- KeycloakRoleMatcher
- Role matcher service.
Namespace
Drupal\keycloak\ServiceCode
public function hasRoleRules() {
return !empty($this->config
->get('settings.keycloak_groups.rules'));
}