You are here

TfaValidation.php in Two-factor Authentication (TFA) 8

File

src/Annotation/TfaValidation.php
View source
<?php

namespace Drupal\tfa\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a TFA Validation annotation object.
 *
 * @Annotation
 */
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;

}

Classes

Namesort descending Description
TfaValidation Defines a TFA Validation annotation object.