• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/controller/asset/grabber.php
  • Класс: BitrixTranslateControllerAssetGrabber
  • Вызов: Grabber::cancelAction
public function cancelAction(): array
{
	$this->finalizeAction();
	$this->purgeAction();
	$this->clearProgressParameters();

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

	return [
		'SUMMARY' => $summary,
		'STATUS' => TranslateControllerSTATUS_COMPLETED
	];
}