• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/configuration/action/import.php
  • Класс: BitrixRestConfigurationActionImport
  • Вызов: Import::get
public function get(): array
{
	$status = $this->getStatus();
	$result = parent::get();
	$actionInfo = $this->getSetting()->get(Setting::SETTING_ACTION_INFO);
	if ($status === self::STATUS_PROCESS || $status === self::STATUS_ERROR)
	{
		if ($actionInfo)
		{
			$result['progress'] = [
				'action' => $actionInfo['run'],
				'step' => $actionInfo['step'],
			];
			if (
				!empty($actionInfo['section'][$actionInfo['currentSection']])
				&& !empty($actionInfo['run'])
				&& $actionInfo['run'] !== self::STEP_FINISH
			)
			{
				$result['progress']['section'] = $actionInfo['section'][$actionInfo['currentSection']];
			}
		}
	}
	elseif ($status === self::STATUS_FINISH)
	{
		$result['additional'] = $actionInfo['setting']['additional'] ?? [];
		$result['createItemList'] = $actionInfo['setting']['createItemList'] ?? [];
	}

	return $result;
}