public function ContentHubUserSession::isAuthenticated in Acquia Content Hub 8
Same name and namespace in other branches
- 8.2 src/Session/ContentHubUserSession.php \Drupal\acquia_contenthub\Session\ContentHubUserSession::isAuthenticated()
Returns TRUE if the account is authenticated.
Return value
bool TRUE if the account is authenticated.
Overrides UserSession::isAuthenticated
File
- src/
Session/ ContentHubUserSession.php, line 61
Class
- ContentHubUserSession
- An account implementation representing a Content Hub user.
Namespace
Drupal\acquia_contenthub\SessionCode
public function isAuthenticated() {
return $this->renderRole !== AccountInterface::ANONYMOUS_ROLE;
}