You are here

public function ContentHubUserSession::isAnonymous in Acquia Content Hub 8.2

Same name and namespace in other branches
  1. 8 src/Session/ContentHubUserSession.php \Drupal\acquia_contenthub\Session\ContentHubUserSession::isAnonymous()

Returns TRUE if the account is anonymous.

Return value

bool TRUE if the account is anonymous.

Overrides UserSession::isAnonymous

File

src/Session/ContentHubUserSession.php, line 70

Class

ContentHubUserSession
An account implementation representing a Content Hub user.

Namespace

Drupal\acquia_contenthub\Session

Code

public function isAnonymous() {
  return $this->renderRole === AccountInterface::ANONYMOUS_ROLE;
}