• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/controller/syncajax.php
  • Класс: BitrixCalendarControllerSyncAjax
  • Вызов: SyncAjax::getAuthLinkAction
public function getAuthLinkAction()
{
	$type = $this->getRequest()->getPost('type');
	$type = in_array($type, ['slider', 'banner'], true)
		? $type
		: 'banner'
	;
	if (BitrixMainLoader::includeModule("mobile"))
	{
		return ['link' => BitrixMobileDeeplink::getAuthLink("calendar_sync_".$type)];
	}
	return null;
}