You are here

public function PasswordAnonymizer::__construct in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/anonymizer/src/Plugin/Anonymizer/PasswordAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\PasswordAnonymizer::__construct()
  2. 3.0.x modules/anonymizer/src/Plugin/Anonymizer/PasswordAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\PasswordAnonymizer::__construct()

PasswordAnonymizer constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Password\PasswordInterface $password: The password service.

\Drupal\anonymizer\Service\FakerServiceInterface $faker: The faker service.

Overrides AnonymizerBase::__construct

File

modules/anonymizer/src/Plugin/Anonymizer/PasswordAnonymizer.php, line 66

Class

PasswordAnonymizer
Class PasswordAnonymizer.

Namespace

Drupal\anonymizer\Plugin\Anonymizer

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PasswordInterface $password, FakerServiceInterface $faker) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $faker);
  $this->password = $password;
}