You are here

public function ConstraintEdit::__construct in Password Policy 8.3

Overriding the constructor to load in the plugin manager and tempstore.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: The tempstore of the wizard form.

\Drupal\Component\Plugin\PluginManagerInterface $manager: The plugin manager for the password constraints.

File

src/Form/ConstraintEdit.php, line 64

Class

ConstraintEdit
Editing a constraint within the policy wizard form.

Namespace

Drupal\password_policy\Form

Code

public function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $manager) {
  $this->tempstore = $tempstore;
  $this->manager = $manager;
}