You are here

public function ForcePasswordChangeService::getLastChangeForRole in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::getLastChangeForRole()

Get the last time at which a role was forced to change passwords for all users.

Parameters

string $rid: The Role ID of the role to be checked.

Return value

int A UNIX timestamp representing the last time all uses in the role were forced to change their passwords.

Overrides ForcePasswordChangeServiceInterface::getLastChangeForRole

File

src/Service/ForcePasswordChangeService.php, line 146

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function getLastChangeForRole($rid) {
  return $this->mapper
    ->getLastChangeForRole($rid);
}