You are here

public function PasswordLength::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_length/src/Plugin/PasswordConstraint/PasswordLength.php, line 47

Class

PasswordLength
Enforces a specific character length for passwords.

Namespace

Drupal\password_policy_length\Plugin\PasswordConstraint

Code

public function defaultConfiguration() {
  return [
    'character_length' => 1,
    'character_operation' => 'minimum',
  ];
}