Grabber :: cancelAction: Bitrix method

      
<?php 
//  Bitrix\Translate\Controller\Asset\Grabber :: cancelAction()
//  /dist/bitrix/modules/translate/lib/controller/asset/grabber.php:287

    
public function cancelAction()
    {
        
$this->finalizeAction();
        
$this->purgeAction();
        
$this->clearProgressParameters();

        
$cancelingAction $this->request->get('cancelingAction');
        
$summary =
            
in_array($cancelingAction, [self::ACTION_COLLECTself::ACTION_PACK]) ?
                
Loc::getMessage('TR_EXPORT_ACTION_CANCELED') :
                
Loc::getMessage('TR_IMPORT_ACTION_CANCELED')
        ;

        return array(
            
'SUMMARY' => $summary,
            
'STATUS' => Translate\Controller\STATUS_COMPLETED
        
);
    }