You are here

public function ForcePasswordChangeServiceInterface::insertExpiryForRoles in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeServiceInterface.php \Drupal\force_password_change\Service\ForcePasswordChangeServiceInterface::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.
1 method overrides ForcePasswordChangeServiceInterface::insertExpiryForRoles()
ForcePasswordChangeService::insertExpiryForRoles in src/Service/ForcePasswordChangeService.php
Insert the time period after which passwords should expire, for the given roles.

File

src/Service/ForcePasswordChangeServiceInterface.php, line 77

Class

ForcePasswordChangeServiceInterface

Namespace

Drupal\force_password_change\Service

Code

public function insertExpiryForRoles(array $values);