You are here

public function ConsecutiveCharacters::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_consecutive/src/Plugin/PasswordConstraint/ConsecutiveCharacters.php, line 41

Class

ConsecutiveCharacters
Enforces a maximum number of consecutive identical characters.

Namespace

Drupal\password_policy_consecutive\Plugin\PasswordConstraint

Code

public function defaultConfiguration() {
  return [
    'max_consecutive_characters' => 2,
  ];
}