public function RoleExpireApiService::deleteRoleRecords in Role Expire 8
Same name and namespace in other branches
- 2.x src/RoleExpireApiService.php \Drupal\role_expire\RoleExpireApiService::deleteRoleRecords()
Delete all records for role.
Parameters
string $rid: Role ID.
File
- src/
RoleExpireApiService.php, line 131
Class
- RoleExpireApiService
- Class RoleExpireApiService.
Namespace
Drupal\role_expireCode
public function deleteRoleRecords($rid) {
$this->database
->delete('role_expire')
->condition('rid', $rid)
->execute();
}