public function PersistentToken::getStatus in Persistent Login 8
The token validation status.
Return value
int A validation status constant.
File
- src/
PersistentToken.php, line 160
Class
- PersistentToken
- Class PersistentToken.
Namespace
Drupal\persistent_loginCode
public function getStatus() {
if ($this->uid === 0) {
return self::STATUS_NOT_VALIDATED;
}
elseif ($this->uid > 0) {
return self::STATUS_VALID;
}
else {
return self::STATUS_INVALID;
}
}