public function UserVersion::getCurrentUserAsAccount

8.0.x UserVersion.php public UserVersion::getCurrentUserAsAccount()
7.x UserVersion.php public UserVersion::getCurrentUserAsAccount()
master UserVersion.php public UserVersion::getCurrentUserAsAccount()

Load the current user account.

Return value

mixed A user object.

1 call to UserVersion::getCurrentUserAsAccount()
UserVersion::getCurrentUserAsSingle in lib/Drush/User/UserVersion.php
Load the current user account and return a UserSingle instance.
1 method overrides UserVersion::getCurrentUserAsAccount()
User8::getCurrentUserAsAccount in lib/Drush/User/User8.php
{inheritdoc}

File

lib/Drush/User/UserVersion.php, line 53

Namespace

Drush\User

Class

UserVersion

Code

public function getCurrentUserAsAccount() {
  global $user;
  return $user;
}