You are here

public function UserAuthenticator::currentUser in Social API 8.2

Same name and namespace in other branches
  1. 3.x src/User/UserAuthenticator.php \Drupal\social_api\User\UserAuthenticator::currentUser()

Returns the current user.

Return value

\Drupal\Core\Session\AccountProxyInterface The current Drupal user.

File

src/User/UserAuthenticator.php, line 157

Class

UserAuthenticator
Manages Drupal authentication tasks for Social API.

Namespace

Drupal\social_api\User

Code

public function currentUser() {
  return $this->currentUser;
}