classes/Tools/BatchTool.php
public function cancelAction() {
        BatchManager::instance()->setShouldCancel($this->batchIdentifier(), true);

        call_user_func([$this->batchProcessClassName(), 'cancelAll']);

        json_response(['status' => 'ok']);
    }
public function cancelAction() {
        BatchManager::instance()->setShouldCancel($this->batchIdentifier(), true);

        call_user_func([$this->batchProcessClassName(), 'cancelAll']);

        json_response(['status' => 'ok']);
    }
public function cancelAction ( ) { BatchManager :: instance ( ) -> setShouldCancel ( $ this -> batchIdentifier ( ) , true ) ; call_user_func ( [ $ this -> batchProcessClassName ( ) , 'cancelAll' ] ) ; json_response ( [ 'status' => 'ok' ] ) ; }
Cancels the batch
Cancels the batch