• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/transfer/import/landing.php
  • Класс: BitrixLandingTransferImportLanding
  • Вызов: Landing::isNeedImport
static function isNeedImport(Event $event): bool
{
	$code = $event->getParameter('CODE');
	$content = $event->getParameter('CONTENT');
	$ratio = $event->getParameter('RATIO');

	if (
		$ratio[$code]['IS_PAGE_IMPORT']
		&& isset($ratio[$code]['SPECIAL_PAGES']['LANDING_ID_INDEX'])
		&& (int)$content['DATA']['ID'] !== $ratio[$code]['SPECIAL_PAGES']['LANDING_ID_INDEX']
	)
	{
		return false;
	}

	return true;
}