You are here

public function PasswordUsername::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_username/src/Plugin/PasswordConstraint/PasswordUsername.php, line 39

Class

PasswordUsername
Ensures the password doesn't contain the username.

Namespace

Drupal\password_policy_username\Plugin\PasswordConstraint

Code

public function defaultConfiguration() {
  return [
    'disallow_username' => TRUE,
  ];
}