• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/vendordataexchangemanager.php
  • Класс: BitrixCalendarSyncManagersVendorDataExchangeManager
  • Вызов: VendorDataExchangeManager::filterUnchangedSections
public function filterUnchangedSections(
	SyncEntitiesSyncSectionMap $externalSyncSectionMap,
	SyncEntitiesSyncSection $syncSection
): bool
{
	/** @var SyncEntitiesSyncSection $externalSyncSection */
	if (
		($externalSyncSection = $externalSyncSectionMap->getItem($syncSection->getSectionConnection()
			->getVendorSectionId()))
		&& $syncSection->getSectionConnection()->getVersionId() !== $externalSyncSection->getSectionConnection()
			->getVersionId()
	)
	{
		$syncSection->getSectionConnection()->setVersionId($externalSyncSection->getSectionConnection()->getVersionId());

		return true;
	}

	return false;
}