public function requeueDocumentAction(string $type, int $uid)
    {
        $label = 'solr.backend.index_queue_module.flashmessage.error.single_item_not_requeued';
        $severity = FlashMessage::ERROR;

        $updateCount = $this->indexQueue->updateItem($type, $uid, time());
        if ($updateCount > 0) {
            $label = 'solr.backend.index_queue_module.flashmessage.success.single_item_was_requeued';
            $severity = FlashMessage::OK;
        }

        $this->addIndexQueueFlashMessage($label, $severity);

        $this->redirect('index');
    }
public function requeueDocumentAction(string $type, int $uid)
    {
        $label = 'solr.backend.index_queue_module.flashmessage.error.single_item_not_requeued';
        $severity = FlashMessage::ERROR;

        $updateCount = $this->indexQueue->updateItem($type, $uid, time());
        if ($updateCount > 0) {
            $label = 'solr.backend.index_queue_module.flashmessage.success.single_item_was_requeued';
            $severity = FlashMessage::OK;
        }

        $this->addIndexQueueFlashMessage($label, $severity);

        $this->redirect('index');
    }
public function requeueDocumentAction ( string $ type , int $ uid ) { $ label = 'solr.backend.index_queue_module.flashmessage.error.single_item_not_requeued' ; $ severity = FlashMessage :: ERROR ; $ updateCount = $ this -> indexQueue -> updateItem ( $ type , $ uid , time ( ) ) ; if ( $ updateCount > 0 ) { $ label = 'solr.backend.index_queue_module.flashmessage.success.single_item_was_requeued' ; $ severity = FlashMessage :: OK ; } $ this -> addIndexQueueFlashMessage ( $ label , $ severity ) ; $ this -> redirect ( 'index' ) ; }
ReQueues a single item in the indexQueue.

@param string $type
@param int $uid

@return void
ReQueues a single item in the indexQueue .