• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/copy/integration/groupstepper.php
  • Класс: BitrixLandingCopyIntegrationGroupStepper
  • Вызов: GroupStepper::copyTemplate
private function copyTemplate(int $siteId, int $copiedSiteId, array $pageMapIds): void
{
	if (($refs = LandingTemplateRef::getForSite($siteId)))
	{
		foreach ($refs as $areaId => $oldId)
		{
			if (isset($pageMapIds[$oldId]))
			{
				$refs[$areaId] = $pageMapIds[$oldId];
			}
			else
			{
				unset($refs[$areaId]);
			}
		}
		if ($refs)
		{
			LandingTemplateRef::setForSite($copiedSiteId, $refs);
		}
	}
}