public function ConsecutiveCharacters::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_consecutive/
src/ Plugin/ PasswordConstraint/ ConsecutiveCharacters.php, line 50
Class
- ConsecutiveCharacters
- Enforces a maximum number of consecutive identical characters.
Namespace
Drupal\password_policy_consecutive\Plugin\PasswordConstraintCode
public function getSummary() {
return $this
->t('Maximum consecutive identical characters: @max', [
'@max' => $this
->getConfiguration()['max_consecutive_characters'],
]);
}