public function PasswordCharacter::defaultConfiguration in Password Policy 8.3
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides PasswordConstraintBase::defaultConfiguration
File
- password_policy_characters/
src/ Plugin/ PasswordConstraint/ PasswordCharacter.php, line 98
Class
- PasswordCharacter
- Enforces a number of a type of character in passwords.
Namespace
Drupal\password_policy_characters\Plugin\PasswordConstraintCode
public function defaultConfiguration() {
return [
'character_count' => 1,
'character_type' => 'special',
];
}