public function RoleExpireApiService::getRolesExpirationStatus in Role Expire 8
Same name and namespace in other branches
- 2.x src/RoleExpireApiService.php \Drupal\role_expire\RoleExpireApiService::getRolesExpirationStatus()
Get role expiration status for each role.
Return value
array Returns an array where the key is the original rid and the value is 0 if role should have expiration and 1 if it shouldn't.
1 call to RoleExpireApiService::getRolesExpirationStatus()
- RoleExpireApiService::getEnabledExpirationRoles in src/
RoleExpireApiService.php - Get rid of all enabled roles.
File
- src/
RoleExpireApiService.php, line 281
Class
- RoleExpireApiService
- Class RoleExpireApiService.
Namespace
Drupal\role_expireCode
public function getRolesExpirationStatus() {
$values_raw = $this->config
->get('role_expire.config')
->get('role_expire_disabled_roles');
$values = empty($values_raw) ? [] : json_decode($values_raw, TRUE);
return $values;
}