You are here

ApiToken.php in API Tokens 8.2

Same filename and directory in other branches
  1. 8 src/Annotation/ApiToken.php

File

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

namespace Drupal\api_tokens\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an API token annotation object.
 *
 * @Annotation
 */
class ApiToken extends Plugin {

  /**
   * The API token ID.
   *
   * @var string
   */
  public $id;

  /**
   * The administrative label of the API token.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The administrative description of the API token.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation (optional)
   */
  public $description = '';

}

Classes

Namesort descending Description
ApiToken Defines an API token annotation object.