You are here

public function UserAuthenticator::currentUser in Social API 3.x

Same name and namespace in other branches
  1. 8.2 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;
}