You are here

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

Insert the time period after which passwords should expire, for the given roles.

Parameters

array $values: An array of data to be inserted. Each element of the array should be an array that contains the following values:

  • rid: The Role ID of the role being inserted
  • expiry: The number of seconds after which the password should expire
  • weight: The priority of the expiry in relation to other roles.

Overrides ForcePasswordChangeServiceInterface::insertExpiryForRoles

File

src/Service/ForcePasswordChangeService.php, line 160

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function insertExpiryForRoles($values) {
  $this->mapper
    ->insertExpiryForRoles($values);
}