• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/synchronization.php
  • Класс: BitrixCalendarSyncManagersSynchronization
  • Вызов: Synchronization::prepareEventContext
private function prepareEventContext(Event $event, Context $context, FactoryInterface $factory): EventContext
{
	$sectionLink = $context->sync['sectionLink'] ?? $this->getSectionConnection($event->getSection(), $factory);
	$eventLink = $context->sync['eventLink'] ?? $this->getEventConnection($event, $factory);

	return (new EventContext())
		->merge($context)
		->setSectionConnection($sectionLink)
		->setEventConnection($eventLink)
	;
}