You are here

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

Constructs a UserData object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\user\UserDataInterface $user_data: User data object to store user specific information.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/TfaEnabledField.php, line 47

Class

TfaEnabledField
Provides a views field to show if the selected user has enabled TFA.

Namespace

Drupal\tfa\Plugin\views\field

Code

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