public function UserSingleBase::unblock

8.0.x UserSingleBase.php public UserSingleBase::unblock()
7.x UserSingleBase.php public UserSingleBase::unblock()
master UserSingleBase.php public UserSingleBase::unblock()

Unblock a user from login.

1 method overrides UserSingleBase::unblock()
UserSingle7::unblock in lib/Drush/User/UserSingle7.php
Unblock a user from login.

File

lib/Drush/User/UserSingleBase.php, line 51

Namespace

Drush\User

Class

UserSingleBase

Code

public function unblock() {
  $this->account->get('status')->value = 1;
  $this->account->save();
}