You are here

public function PasswordPolicyValidation::setErrorMessage in Password Policy 8.3

Set error message and mark as invalid.

File

src/PasswordPolicyValidation.php, line 18

Class

PasswordPolicyValidation
A construct to organize validation of a password policy.

Namespace

Drupal\password_policy

Code

public function setErrorMessage($error) {
  $this->valid = FALSE;
  $this->error = $error;
}