Airship\Cabin\Bridge\Landing\Crew::deleteUser PHP Method

deleteUser() public method

public deleteUser ( string $userId = '' )
$userId string
    public function deleteUser(string $userId = '')
    {
        $userId = (int) $userId;
        $user = $this->account->getUserAccount($userId, true);
        $post = $this->post(new DeleteUserFilter());
        if ($post) {
            if ($this->account->deleteUser($userId)) {
                \Airship\redirect($this->airship_cabin_prefix . '/crew/users');
            }
        }
        $this->lens('crew/user_delete', ['active_link' => 'bridge-link-admin-crew-users', 'user' => $user]);
    }