class TokenAuthUser in Simple OAuth (OAuth2) & OpenID Connect 8
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser
- 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser
Class TokenAuthUser.
@package Drupal\simple_oauth\Authentication
Hierarchy
- class \Drupal\simple_oauth\Authentication\TokenAuthUser implements TokenAuthUserInterface
Expanded class hierarchy of TokenAuthUser
1 file declares its use of TokenAuthUser
- SimpleOauthAuthenticationProvider.php in src/
Authentication/ Provider/ SimpleOauthAuthenticationProvider.php
File
- src/
Authentication/ TokenAuthUser.php, line 18
Namespace
Drupal\simple_oauth\AuthenticationView source
class TokenAuthUser implements TokenAuthUserInterface {
/**
* The decorator subject.
*
* @var UserInterface
*/
protected $subject;
/**
* The decorator subject.
*
* @var AccessTokenInterface
*/
protected $token;
/**
* {@inheritdoc}
*/
public function getToken() {
return $this->token;
}
/**
* Constructs a TokenAuthUser object.
*
* @param AccessTokenInterface $token
* The underlying token.
* @throws \Exception
* When there is no user.
*/
public function __construct(AccessTokenInterface $token) {
if (!($this->subject = $token
->get('auth_user_id')->entity)) {
throw new \Exception('The access token does not link to a user.');
}
$this->token = $token;
}
/**
* {@inheritdoc}
*/
public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) {
return $this->subject
->access($operation, $account, $return_as_object);
}
/**
* {@inheritdoc}
*/
public function getRoles($exclude_locked_roles = FALSE) {
return $this->subject
->getRoles($exclude_locked_roles);
}
/**
* {@inheritdoc}
*/
public function hasPermission($permission) {
return $this->token
->hasPermission($permission) ? $this->subject
->hasPermission($permission) : FALSE;
}
/**
* {@inheritdoc}
*/
public function isAuthenticated() {
return $this->subject
->isAuthenticated();
}
/**
* {@inheritdoc}
*/
public function isAnonymous() {
return $this->subject
->isAnonymous();
}
/**
* {@inheritdoc}
*/
public function getPreferredLangcode($fallback_to_default = TRUE) {
return $this->subject
->getPreferredLangcode($fallback_to_default);
}
/**
* {@inheritdoc}
*/
public function getPreferredAdminLangcode($fallback_to_default = TRUE) {
return $this->subject
->getPreferredAdminLangcode($fallback_to_default);
}
/**
* {@inheritdoc}
*/
public function getUsername() {
return $this->subject
->getUsername();
}
/**
* {@inheritdoc}
*/
public function getAccountName() {
return $this->subject
->getAccountName();
}
/**
* {@inheritdoc}
*/
public function getDisplayName() {
return $this->subject
->getDisplayName();
}
/**
* {@inheritdoc}
*/
public function getEmail() {
return $this->subject
->getEmail();
}
/**
* {@inheritdoc}
*/
public function getTimeZone() {
return $this->subject
->getTimeZone();
}
/**
* {@inheritdoc}
*/
public function getLastAccessedTime() {
return $this->subject
->getLastAccessedTime();
}
/**
* {@inheritdoc}
*/
public function getCacheContexts() {
return $this->subject
->getCacheContexts();
}
/**
* {@inheritdoc}
*/
public function getCacheTags() {
return $this->subject
->getCacheTags();
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
return $this->subject
->getCacheMaxAge();
}
/**
* {@inheritdoc}
*/
public function hasTranslationChanges() {
return $this->subject
->hasTranslationChanges();
}
/**
* {@inheritdoc}
*/
public function setRevisionTranslationAffected($affected) {
return $this->subject
->setRevisionTranslationAffected($affected);
}
/**
* {@inheritdoc}
*/
public function isRevisionTranslationAffected() {
return $this->subject
->isRevisionTranslationAffected();
}
/**
* {@inheritdoc}
*/
public function getChangedTime() {
return $this->subject
->getChangedTime();
}
/**
* {@inheritdoc}
*/
public function setChangedTime($timestamp) {
return $this->subject
->setChangedTime($timestamp);
}
/**
* {@inheritdoc}
*/
public function getChangedTimeAcrossTranslations() {
return $this->subject
->getChangedTimeAcrossTranslations();
}
/**
* {@inheritdoc}
*/
public function uuid() {
return $this->subject
->uuid();
}
/**
* {@inheritdoc}
*/
public function id() {
return $this->subject
->id();
}
/**
* {@inheritdoc}
*/
public function language() {
return $this->subject
->language();
}
/**
* {@inheritdoc}
*/
public function isNew() {
return $this->subject
->isNew();
}
/**
* {@inheritdoc}
*/
public function enforceIsNew($value = TRUE) {
return $this->subject
->enforceIsNew($value);
}
/**
* {@inheritdoc}
*/
public function getEntityTypeId() {
return $this->subject
->getEntityTypeId();
}
/**
* {@inheritdoc}
*/
public function bundle() {
return $this->subject
->bundle();
}
/**
* {@inheritdoc}
*/
public function label() {
return $this->subject
->label();
}
/**
* {@inheritdoc}
*/
public function urlInfo($rel = 'canonical', array $options = array()) {
return $this->subject
->urlInfo($rel, $options);
}
/**
* {@inheritdoc}
*/
public function url($rel = 'canonical', $options = array()) {
return $this->subject
->url($rel, $options);
}
/**
* {@inheritdoc}
*/
public function link($text = NULL, $rel = 'canonical', array $options = []) {
return $this->subject
->link($text, $rel, $options);
}
/**
* {@inheritdoc}
*/
public function hasLinkTemplate($key) {
return $this->subject
->hasLinkTemplate($key);
}
/**
* {@inheritdoc}
*/
public function uriRelationships() {
return $this->subject
->uriRelationships();
}
/**
* {@inheritdoc}
*/
public static function load($id) {
return User::load($id);
}
/**
* {@inheritdoc}
*/
public static function loadMultiple(array $ids = NULL) {
return User::loadMultiple($ids);
}
/**
* {@inheritdoc}
*/
public static function create(array $values = array()) {
return User::create($values);
}
/**
* {@inheritdoc}
*/
public function save() {
return $this->subject
->save();
}
/**
* {@inheritdoc}
*/
public function delete() {
$this->subject
->delete();
}
/**
* {@inheritdoc}
*/
public function preSave(EntityStorageInterface $storage) {
$this->subject
->preSave($storage);
}
/**
* {@inheritdoc}
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
$this->subject
->postSave($storage, $update);
}
/**
* {@inheritdoc}
*/
public static function preCreate(EntityStorageInterface $storage, array &$values) {
User::preCreate($storage, $values);
}
/**
* {@inheritdoc}
*/
public function postCreate(EntityStorageInterface $storage) {
return $this->subject
->postCreate($storage);
}
/**
* {@inheritdoc}
*/
public static function preDelete(EntityStorageInterface $storage, array $entities) {
User::preDelete($storage, $entities);
}
/**
* {@inheritdoc}
*/
public static function postDelete(EntityStorageInterface $storage, array $entities) {
User::postDelete($storage, $entities);
}
/**
* {@inheritdoc}
*/
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
User::postLoad($storage, $entities);
}
/**
* {@inheritdoc}
*/
public function createDuplicate() {
return $this->subject
->createDuplicate();
}
/**
* {@inheritdoc}
*/
public function getEntityType() {
return $this->subject
->getEntityType();
}
/**
* {@inheritdoc}
*/
public function referencedEntities() {
return $this->subject
->referencedEntities();
}
/**
* {@inheritdoc}
*/
public function getOriginalId() {
return $this->subject
->getOriginalId();
}
/**
* {@inheritdoc}
*/
public function getCacheTagsToInvalidate() {
return $this->subject
->getCacheTagsToInvalidate();
}
/**
* {@inheritdoc}
*/
public function setOriginalId($id) {
return $this->subject
->setOriginalId($id);
}
/**
* {@inheritdoc}
*/
public function getTypedData() {
return $this->subject
->getTypedData();
}
/**
* {@inheritdoc}
*/
public function getConfigDependencyKey() {
return $this->subject
->getConfigDependencyKey();
}
/**
* {@inheritdoc}
*/
public function getConfigDependencyName() {
return $this->subject
->getConfigDependencyName();
}
/**
* {@inheritdoc}
*/
public function getConfigTarget() {
return $this->subject
->getConfigTarget();
}
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
return User::baseFieldDefinitions($entity_type);
}
/**
* {@inheritdoc}
*/
public static function bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {
return User::bundleFieldDefinitions($entity_type, $bundle, $base_field_definitions);
}
/**
* {@inheritdoc}
*/
public function hasField($field_name) {
return $this->subject
->hasField($field_name);
}
/**
* {@inheritdoc}
*/
public function getFieldDefinition($name) {
return $this->subject
->getFieldDefinition($name);
}
/**
* {@inheritdoc}
*/
public function getFieldDefinitions() {
return $this->subject
->getFieldDefinitions();
}
/**
* {@inheritdoc}
*/
public function toArray() {
return $this->subject
->toArray();
}
/**
* {@inheritdoc}
*/
public function get($field_name) {
return $this->subject
->get($field_name);
}
/**
* {@inheritdoc}
*/
public function set($field_name, $value, $notify = TRUE) {
return $this->subject
->set($field_name, $value, $notify);
}
/**
* {@inheritdoc}
*/
public function getFields($include_computed = TRUE) {
return $this->subject
->getFields($include_computed);
}
/**
* {@inheritdoc}
*/
public function getTranslatableFields($include_computed = TRUE) {
return $this->subject
->getTranslatableFields($include_computed);
}
/**
* {@inheritdoc}
*/
public function onChange($field_name) {
$this->subject
->onChange($field_name);
}
/**
* {@inheritdoc}
*/
public function validate() {
return $this->subject
->validate();
}
/**
* {@inheritdoc}
*/
public function isValidationRequired() {
return $this->subject
->isValidationRequired();
}
/**
* {@inheritdoc}
*/
public function setValidationRequired($required) {
return $this->subject
->setValidationRequired($required);
}
/**
* {@inheritdoc}
*/
public function addCacheContexts(array $cache_contexts) {
return $this->subject
->addCacheContexts($cache_contexts);
}
/**
* {@inheritdoc}
*/
public function addCacheTags(array $cache_tags) {
return $this->subject
->addCacheTags($cache_tags);
}
/**
* {@inheritdoc}
*/
public function mergeCacheMaxAge($max_age) {
return $this->subject
->mergeCacheMaxAge($max_age);
}
/**
* {@inheritdoc}
*/
public function addCacheableDependency($other_object) {
return $this->subject
->addCacheableDependency($other_object);
}
/**
* {@inheritdoc}
*/
public function isNewRevision() {
return $this->subject
->isNewRevision();
}
/**
* {@inheritdoc}
*/
public function setNewRevision($value = TRUE) {
$this->subject
->setNewRevision($value);
}
/**
* {@inheritdoc}
*/
public function getRevisionId() {
return $this->subject
->getRevisionId();
}
/**
* {@inheritdoc}
*/
public function isDefaultRevision($new_value = NULL) {
return $this->subject
->isDefaultRevision($new_value);
}
/**
* {@inheritdoc}
*/
public function preSaveRevision(EntityStorageInterface $storage, \stdClass $record) {
$this->subject
->preSaveRevision($storage, $record);
}
/**
* {@inheritdoc}
*/
public function isDefaultTranslation() {
return $this->subject
->isDefaultTranslation();
}
/**
* {@inheritdoc}
*/
public function getTranslationLanguages($include_default = TRUE) {
return $this->subject
->getTranslationLanguages($include_default);
}
/**
* {@inheritdoc}
*/
public function getTranslation($langcode) {
return $this->subject
->getTranslation($langcode);
}
/**
* {@inheritdoc}
*/
public function getUntranslated() {
return $this->subject
->getUntranslated();
}
/**
* {@inheritdoc}
*/
public function hasTranslation($langcode) {
return $this->subject
->hasTranslation($langcode);
}
/**
* {@inheritdoc}
*/
public function addTranslation($langcode, array $values = array()) {
return $this->subject
->addTranslation($langcode, $values);
}
/**
* {@inheritdoc}
*/
public function removeTranslation($langcode) {
$this->subject
->removeTranslation($langcode);
}
/**
* {@inheritdoc}
*/
public function isTranslatable() {
return $this->subject
->isTranslatable();
}
/**
* {@inheritdoc}
*/
public function hasRole($rid) {
return $this->subject
->hasRole($rid);
}
/**
* {@inheritdoc}
*/
public function addRole($rid) {
$this->subject
->addRole($rid);
}
/**
* {@inheritdoc}
*/
public function removeRole($rid) {
$this->subject
->removeRole($rid);
}
/**
* {@inheritdoc}
*/
public function setUsername($username) {
return $this->subject
->setUsername($username);
}
/**
* {@inheritdoc}
*/
public function getPassword() {
return $this->subject
->getPassword();
}
/**
* {@inheritdoc}
*/
public function setPassword($password) {
return $this->subject
->setPassword($password);
}
/**
* {@inheritdoc}
*/
public function setEmail($mail) {
return $this->subject
->setEmail($mail);
}
/**
* {@inheritdoc}
*/
public function getCreatedTime() {
return $this->subject
->getCreatedTime();
}
/**
* {@inheritdoc}
*/
public function setLastAccessTime($timestamp) {
return $this->subject
->setLastAccessTime($timestamp);
}
/**
* {@inheritdoc}
*/
public function getLastLoginTime() {
return $this->subject
->getLastLoginTime();
}
/**
* {@inheritdoc}
*/
public function setLastLoginTime($timestamp) {
return $this->subject
->setLastLoginTime($timestamp);
}
/**
* {@inheritdoc}
*/
public function isActive() {
return $this->subject
->isActive();
}
/**
* {@inheritdoc}
*/
public function isBlocked() {
return $this->subject
->isBlocked();
}
/**
* {@inheritdoc}
*/
public function activate() {
return $this->subject
->activate();
}
/**
* {@inheritdoc}
*/
public function block() {
return $this->subject
->block();
}
/**
* {@inheritdoc}
*/
public function getInitialEmail() {
return $this->subject
->getInitialEmail();
}
/**
* {@inheritdoc}
*/
public function setExistingPassword($password) {
return $this->subject
->setExistingPassword($password);
}
/**
* {@inheritdoc}
*/
public function checkExistingPassword(UserInterface $account_unchanged) {
return $this->subject
->checkExistingPassword($account_unchanged);
}
/**
* {@inheritdoc}
*/
public function getIterator() {
throw new \Exception('Invalid use of getIterator in token authentication.');
}
/**
* {@inheritdoc}
*/
public function toUrl($rel = 'canonical', array $options = array()) {
$this->subject
->toUrl($rel, $options);
}
/**
* {@inheritdoc}
*/
public function toLink($text = NULL, $rel = 'canonical', array $options = []) {
return $this->subject
->toLink($text, $rel, $options);
}
/**
* {@inheritdoc}
*/
public function isNewTranslation() {
return $this->subject
->isNewTranslation();
}
/**
* {@inheritdoc}
*/
public function getLoadedRevisionId() {
return $this->subject
->getLoadedRevisionId();
}
/**
* {@inheritdoc}
*/
public function updateLoadedRevisionId() {
$this->subject
->updateLoadedRevisionId();
return $this;
}
/**
* {@inheritdoc}
*/
public function wasDefaultRevision() {
return $this->subject
->wasDefaultRevision();
}
/**
* {@inheritdoc}
*/
public function isLatestRevision() {
return $this->subject
->isLatestRevision();
}
/**
* {@inheritdoc}
*/
public function isLatestTranslationAffectedRevision() {
return $this->subject
->isLatestTranslationAffectedRevision();
}
/**
* {@inheritdoc}
*/
public function isRevisionTranslationAffectedEnforced() {
return $this->subject
->isRevisionTranslationAffectedEnforced();
}
/**
* {@inheritdoc}
*/
public function setRevisionTranslationAffectedEnforced($enforced) {
return $this->subject
->setRevisionTranslationAffectedEnforced($enforced);
}
/**
* {@inheritdoc}
*/
public function isDefaultTranslationAffectedOnly() {
return $this->subject
->isDefaultTranslationAffectedOnly();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccountInterface:: |
constant | Role ID for anonymous users. | ||
AccountInterface:: |
constant | Role ID for authenticated users. | ||
SynchronizableInterface:: |
public | function | Returns whether this entity is being changed as part of a synchronization. | 1 |
SynchronizableInterface:: |
public | function | Sets the status of the synchronization flag. | 1 |
TokenAuthUser:: |
protected | property | The decorator subject. | |
TokenAuthUser:: |
protected | property | The decorator subject. | |
TokenAuthUser:: |
public | function |
Checks data value access. Overrides AccessibleInterface:: |
|
TokenAuthUser:: |
public | function |
Activates the user. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Adds a dependency on an object: merges its cacheability metadata. Overrides RefinableCacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
Adds cache contexts. Overrides RefinableCacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
Adds cache tags. Overrides RefinableCacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
Add a role to a user. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Adds a new translation to the translatable object. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public static | function |
Provides base field definitions for an entity type. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Blocks the user. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the bundle of the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Provides field definitions for a specific bundle. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Checks the existing password if set. Overrides UserInterface:: |
|
TokenAuthUser:: |
public static | function |
Constructs a new entity object, without permanently saving it. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Creates a duplicate of the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Deletes an entity permanently. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Enforces an entity to be new. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets a field item list. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the unaltered login name of this account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the cache tags that should be used to invalidate caches. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the timestamp of the last entity change for the current translation. Overrides EntityChangedInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the timestamp of the last entity change across all translations. Overrides EntityChangedInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the key that is used to store configuration dependencies. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the configuration dependency name. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the configuration target identifier for the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the creation time of the user as a UNIX timestamp. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the display name of this account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the email address of this account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the entity type definition. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the ID of the type of the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the definition of a contained field. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets an array of field definitions of all contained fields. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets an array of all field item lists. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the email that was used when the user was registered. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function | ||
TokenAuthUser:: |
public | function |
The timestamp when the account last accessed the site. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the UNIX timestamp when the user last logged in. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the loaded Revision ID of the entity. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the original ID. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the hashed password. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the preferred administrative language code of the account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the preferred language code of the account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the revision identifier of the entity. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Returns a list of roles. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the timezone of this account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Get the token. Overrides TokenAuthUserInterface:: |
|
TokenAuthUser:: |
public | function |
Gets an array of field item lists for translatable fields. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets a translation of the data. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the languages the data is translated to. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Gets a typed data object for this entity object. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the translatable object referring to the original language. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the unaltered login name of this account. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Determines whether the entity has a field with the given name. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Indicates if a link template exists for a given key. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether a user has a certain permission. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Whether a user has a certain role. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Checks there is a translation for the given language code. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Determines if the current translation of the entity has unsaved changes. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the identifier. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Returns TRUE if the user is active. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Returns TRUE if the account is anonymous. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns TRUE if the account is authenticated. Overrides AccountInterface:: |
|
TokenAuthUser:: |
public | function |
Returns TRUE if the user is blocked. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Checks if this entity is the default revision. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether the translation is the default one. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks if untranslatable fields should affect only the default translation. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks if this entity is the latest revision. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether this is the latest revision affecting this translation. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Determines whether the entity is new. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Determines whether a new revision should be created on save. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether the translation is new. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether the current translation is affected by the current revision. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks if the revision translation affected flag value has been enforced. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Returns the translation support status. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether entity validation is required before saving the entity. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the label of the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the language of the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Deprecated way of generating a link to the entity. See toLink(). Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Loads an entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Loads one or more entities. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Merges the maximum age (in seconds) with the existing maximum age. Overrides RefinableCacheableDependencyInterface:: |
|
TokenAuthUser:: |
public | function |
Reacts to changes to a field. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Acts on a created entity before hooks are invoked. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Acts on deleted entities before the delete hook is invoked. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Acts on loaded entities. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Acts on a saved entity before the insert or update hook is invoked. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Changes the values of an entity before it is created. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public static | function |
Acts on entities before they are deleted and before hooks are invoked. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Acts on an entity before the presave hook is invoked. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Acts on a revision before it gets saved. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Gets a list of entities referenced by this entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Remove a role from a user. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Removes the translation identified by the given language code. Overrides TranslatableInterface:: |
|
TokenAuthUser:: |
public | function |
Saves an entity permanently. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Sets a field value. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the timestamp of the last entity change for the current translation. Overrides EntityChangedInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the email address of the user. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the existing plain text password. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the UNIX timestamp when the user last accessed the site.. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the UNIX timestamp when the user last logged in. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Enforces an entity to be saved as a new revision. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the original ID. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the user password. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Marks the current revision translation as affected. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Enforces the revision translation affected flag value. Overrides TranslatableRevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Sets the username of this account. Overrides UserInterface:: |
|
TokenAuthUser:: |
public | function |
Sets whether entity validation is required before saving the entity. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets an array of all field values. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Generates the HTML for a link to this entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the URL object for the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Updates the loaded Revision ID with the revision ID. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function |
Gets a list of URI relationships supported by this entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the public URL for this entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the URL object for the entity. Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Gets the entity UUID (Universally Unique Identifier). Overrides EntityInterface:: |
|
TokenAuthUser:: |
public | function |
Validates the currently set values. Overrides FieldableEntityInterface:: |
|
TokenAuthUser:: |
public | function |
Checks whether the entity object was a default revision when it was saved. Overrides RevisionableInterface:: |
|
TokenAuthUser:: |
public | function | Constructs a TokenAuthUser object. | |
UserInterface:: |
constant | Only administrators can create user accounts. | ||
UserInterface:: |
constant | Visitors can create their own accounts. | ||
UserInterface:: |
constant | Visitors can create accounts that only become active with admin approval. | ||
UserInterface:: |
constant | New users will be set to the default time zone at registration. | ||
UserInterface:: |
constant | New users will get an empty time zone at registration. | ||
UserInterface:: |
constant | New users will select their own timezone at registration. | ||
UserInterface:: |
constant | Maximum length of username text field. |