You are here

public function PasswordUsername::getSummary in Password Policy 8.3

Returns a human-readable summary of the constraint.

Return value

string Summary of the constraint behaviors or restriction.

Overrides PasswordConstraintInterface::getSummary

File

password_policy_username/src/Plugin/PasswordConstraint/PasswordUsername.php, line 81

Class

PasswordUsername
Ensures the password doesn't contain the username.

Namespace

Drupal\password_policy_username\Plugin\PasswordConstraint

Code

public function getSummary() {
  return $this
    ->t("Password must not contain the user's username.");
}