public function KeycloakRoleMatcher::getEvalOperationOptions in Keycloak OpenID Connect 8
Return an options array of available role evaluation operations.
Return value
array Array of available role evaluation operations that can be used as select / radio / checkbox options.
1 call to KeycloakRoleMatcher::getEvalOperationOptions()
- KeycloakRoleMatcher::applyRoleRules in src/
Service/ KeycloakRoleMatcher.php - Applies user role rules to the given user account.
File
- src/
Service/ KeycloakRoleMatcher.php, line 268
Class
- KeycloakRoleMatcher
- Role matcher service.
Namespace
Drupal\keycloak\ServiceCode
public function getEvalOperationOptions() {
$operations = [
'equal' => $this
->t('exact match'),
'not_equal' => $this
->t('no match'),
'starts_with' => $this
->t('starts with'),
'starts_not_with' => $this
->t('starts not with'),
'ends_with' => $this
->t('ends with'),
'ends_not_with' => $this
->t('ends not with'),
'contains' => $this
->t('contains'),
'contains_not' => $this
->t('contains not'),
'empty' => $this
->t('no groups given'),
'not_empty' => $this
->t('any group given'),
'regex' => $this
->t('regex match'),
'not_regex' => $this
->t('no regex match'),
];
return $operations;
}