function drush_usersingle_get_class

8.0.x user.drush.inc drush_usersingle_get_class($account)
7.x user.drush.inc drush_usersingle_get_class($account)
master user.drush.inc drush_usersingle_get_class($account)

Get a version specific UserSingle class.

Parameters

$account:

Return value

\Drush\User\UserSingleBase

See also

drush_get_class().

3 calls to drush_usersingle_get_class()
UserList::getFromOptions in lib/Drush/User/UserList.php
UserList::getFromParameters in lib/Drush/User/UserList.php
Given a comma-separated list of inputs, return accounts for users that match by uid,name or email address.
UserVersion::getCurrentUserAsSingle in lib/Drush/User/UserVersion.php
Load the current user account and return a UserSingle instance.

File

commands/user/user.drush.inc, line 235
Drush User Management commands

Code

function drush_usersingle_get_class($account) {
  return drush_get_class('Drush\User\UserSingle', array($account));
}