public function UserVersion::setCurrentUser

8.0.x UserVersion.php public UserVersion::setCurrentUser($account)
7.x UserVersion.php public UserVersion::setCurrentUser($account)
master UserVersion.php public UserVersion::setCurrentUser($account)

Set the current "global" user account in Drupal.

Parameters

A user object.:

1 method overrides UserVersion::setCurrentUser()
User8::setCurrentUser in lib/Drush/User/User8.php
Set the current user in Drupal.

File

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

Namespace

Drush\User

Class

UserVersion

Code

public function setCurrentUser($account) {
  global $user;
  $user = $account;
}