You are here

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\Service

Code

public function hasRoleRules() {
  return !empty($this->config
    ->get('settings.keycloak_groups.rules'));
}