You are here

public function PasswordConstraintBase::setConfiguration in Password Policy 8.3

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to PasswordConstraintBase::setConfiguration()
PasswordConstraintBase::__construct in src/PasswordConstraintBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/PasswordConstraintBase.php, line 69

Class

PasswordConstraintBase
A base class to define standard operations of a password constraint.

Namespace

Drupal\password_policy

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $configuration + $this
    ->defaultConfiguration();
  return $this;
}