public function TokenAuthUser::isNew 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::isNew()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::isNew()
- 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::isNew()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::isNew()
Determines whether the entity is new.
Usually an entity is new if no ID exists for it yet. However, entities may be enforced to be new with existing IDs too.
Return value
bool TRUE if the entity is new, or FALSE if the entity has already been saved.
Overrides EntityInterface::isNew
See also
\Drupal\Core\Entity\EntityInterface::enforceIsNew()
File
- src/
Authentication/ TokenAuthUser.php, line 234
Class
- TokenAuthUser
- Class TokenAuthUser.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function isNew() {
return $this->subject
->isNew();
}