You are here

public function Account::isAnonymous in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Session/Account.php \Drupal\service_container\Session\Account::isAnonymous()

Returns TRUE if the account is anonymous.

Return value

bool TRUE if the account is anonymous.

Overrides AccountInterface::isAnonymous

File

src/Session/Account.php, line 106
Contains \Drupal\service_container\Session\Account.

Class

Account
Wraps the global user to provide the account interface.

Namespace

Drupal\service_container\Session

Code

public function isAnonymous() {
  return $this->drupal7
    ->user_is_anonymous();
}