Oauth2TokenType.php in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same filename and directory in other branches
Namespace
Drupal\simple_oauth\EntityFile
src/Entity/Oauth2TokenType.phpView source
<?php
namespace Drupal\simple_oauth\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
/**
* Defines the OAuth2 Token Type entity.
*
* @ConfigEntityType(
* id = "oauth2_token_type",
* label = @Translation("OAuth2 Token Type"),
* handlers = {
* "access" = "Drupal\simple_oauth\LockableConfigEntityAccessControlHandler"
* },
* config_prefix = "oauth2_token.bundle",
* admin_permission = "administer simple_oauth entities",
* entity_keys = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* config_export = {
* "id",
* "label",
* "description",
* "locked",
* }
* )
*/
class Oauth2TokenType extends ConfigEntityBase implements Oauth2TokenTypeInterface {
use ConfigEntityLockableTrait;
/**
* The Access Token Type ID.
*
* @var string
*/
protected $id;
/**
* The Access Token Type label.
*
* @var string
*/
protected $label;
/**
* The Access Token Type label.
*
* @var string
*/
protected $description = '';
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->description;
}
/**
* {@inheritdoc}
*/
public function setDescription($description) {
$this->description = $description;
}
}
Classes
Name | Description |
---|---|
Oauth2TokenType | Defines the OAuth2 Token Type entity. |