You are here

function Digit_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Character_Constraint::getValidationErrorMessage

File

constraints/constraint_digit.php, line 16

Class

Digit_Constraint

Code

function getValidationErrorMessage() {
  return t('Password must contain a minimum of %numChars %digits.', array(
    '%numChars' => $this->minimumConstraintValue,
    '%digits' => format_plural($this->minimumConstraintValue, t('digit'), t('digits')),
  ));
}