You are here

public function PasswordPolicyValidatorInterface::buildPasswordPolicyConstraintsTableRows in Password Policy 8.3

Builds the password policy constraints table rows.

Parameters

string $password: The new password.

\Drupal\user\UserInterface $user: The current user object.

array $edited_user_roles: An optional array containing the edited user roles.

Return value

array An array containing the constraints table rows.

1 method overrides PasswordPolicyValidatorInterface::buildPasswordPolicyConstraintsTableRows()
PasswordPolicyValidator::buildPasswordPolicyConstraintsTableRows in src/PasswordPolicyValidator.php
Builds the password policy constraints table rows.

File

src/PasswordPolicyValidatorInterface.php, line 42

Class

PasswordPolicyValidatorInterface
Interface PasswordPolicyValidatorInterface.

Namespace

Drupal\password_policy

Code

public function buildPasswordPolicyConstraintsTableRows(string $password, UserInterface $user, array $edited_user_roles = []) : array;