class TfaValidation in Two-factor Authentication (TFA) 8
Defines a TFA Validation annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\tfa\Annotation\TfaValidation
Expanded class hierarchy of TfaValidation
2 classes are annotated with TfaValidation
- TfaRecoveryCode in src/
Plugin/ TfaValidation/ TfaRecoveryCode.php - Recovery validation class for performing recovery codes validation.
- TfaTestValidationPlugin in tests/
modules/ tfa_test_plugins/ src/ Plugin/ TfaValidation/ TfaTestValidationPlugin.php - TFA Test Validation Plugin.
File
- src/
Annotation/ TfaValidation.php, line 12
Namespace
Drupal\tfa\AnnotationView source
class TfaValidation extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the Tfa validation.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $title;
/**
* The description shown to users.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* Plugin ID for user-specific setup plugin for this validation plugin.
*
* @var string
*/
public $setupPluginId;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
TfaValidation:: |
public | property | The description shown to users. | |
TfaValidation:: |
public | property | The plugin ID. | |
TfaValidation:: |
public | property | Plugin ID for user-specific setup plugin for this validation plugin. | |
TfaValidation:: |
public | property | The human-readable name of the Tfa validation. |