public function UserSingleBase::block

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

Block a user from login.

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

File

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

Namespace

Drush\User

Class

UserSingleBase

Code

public function block() {
  $this->account->block();
  $this->account->save();
}