You are here

function Length_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Character_Constraint::getValidationErrorMessage

File

constraints/constraint_length.php, line 16

Class

Length_Constraint

Code

function getValidationErrorMessage() {
  return t('Password must be a minimum of %numChars %characters in length.', array(
    '%numChars' => $this->minimumConstraintValue,
    '%characters' => format_plural($this->minimumConstraintValue, t('character'), t('characters')),
  ));
}