public function UserVersion::getCurrentUserAsSingle

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

Load the current user account and return a UserSingle instance.

Return value

\Drush\User\UserSingleBase A Drush UserSingle instance.

File

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

Namespace

Drush\User

Class

UserVersion

Code

public function getCurrentUserAsSingle() {
  return drush_usersingle_get_class($this->getCurrentUserAsAccount());
}