• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/configuration/action/import.php
  • Класс: BitrixRestConfigurationActionImport
  • Вызов: Import::doInitManifest
public function doInitManifest(?string $next, int $step, string $type): array
{
	$result = [
		'next' => false,
		'finish' => true,
	];
	$additionalOption = $this->getSetting()->get(Setting::SETTING_ACTION_ADDITIONAL_OPTION);
	$items = Manifest::callEventInit(
		$this->getManifestCode(),
		[
			'TYPE' => $type,
			'STEP' => $step,
			'NEXT' => $next,
			'ITEM_CODE' => '',
			'CONTEXT_USER' => $this->getContext(),
			'ADDITIONAL_OPTION' => $additionalOption,
		]
	);
	foreach ($items as $item)
	{
		$this->getNotificationInstance()->save($item);
		if ($item['NEXT'] !== false)
		{
			$result['next'] = $item['NEXT'];
			$result['finish'] = false;
		}
	}

	return $result;
}