You are here

public function Account::isAuthenticated in Service Container 7

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

Returns TRUE if the account is authenticated.

Return value

bool TRUE if the account is authenticated.

Overrides AccountInterface::isAuthenticated

File

src/Session/Account.php, line 99
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 isAuthenticated() {
  return $this->drupal7
    ->user_is_logged_in();
}