You are here

public function PasswordStrength::getSummary in Password Strength 8.2

Returns a human-readable summary of the constraint.

Return value

string Summary of the constraint behaviors or restriction.

Overrides PasswordConstraintInterface::getSummary

File

src/Plugin/PasswordConstraint/PasswordStrength.php, line 86

Class

PasswordStrength
Enforces a specific character length for passwords.

Namespace

Drupal\password_strength\Plugin\PasswordConstraint

Code

public function getSummary() {
  return $this
    ->t('Password Strength minimum score of @score', array(
    '@score' => $this->configuration['strength_score'],
  ));
}