You are here

public function GenericValidation::__construct in Two-factor Authentication (TFA) 8

TFA Web Services constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\user\UserDataInterface $user_data: User data service.

\Drupal\tfa\TfaValidationPluginManager $tfa_validation_manager: Validation plugin manager.

Overrides ContextAwarePluginBase::__construct

File

services_tfa/src/Plugin/ServiceDefinition/GenericValidation.php, line 68

Class

GenericValidation
TFA web service.

Namespace

Drupal\services_tfa\Plugin\ServiceDefinition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, UserDataInterface $user_data, TfaValidationPluginManager $tfa_validation_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->userData = $user_data;
  $this->tfaValidationManager = $tfa_validation_manager;
}