You are here

public function ForcePasswordChangeService::updateExpiryForRole 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::updateExpiryForRole()

Update the time period expiration data for a given role.

Parameters

string $rid: The Role ID of the role being updated.

$time_period: The number of seconds after which the password should expire for users in the role.

$weight: The priority of the expiration in relation to other roles

Overrides ForcePasswordChangeServiceInterface::updateExpiryForRole

File

src/Service/ForcePasswordChangeService.php, line 167

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function updateExpiryForRole($rid, $time_period, $weight) {
  $this->mapper
    ->updateExpiryForRole($rid, $time_period, $weight);
}