ApiToken.php in API Tokens 8.2
Same filename and directory in other branches
Namespace
Drupal\api_tokens\AnnotationFile
src/Annotation/ApiToken.phpView 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 = '';
}