• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/controller/integration/messengercall.php
  • Класс: BitrixDiskControllerIntegrationMessengerCall
  • Вызов: MessengerCall::getUrlToViewAttachedObject
protected function getUrlToViewAttachedObject(AttachedObject $attachedObject): Uri
{
	/** @see OnlyOffice::loadDocumentViewerAction() */
	return UrlManager::getInstance()->createByController(new OnlyOffice(), 'loadDocumentViewer', [
		'attachedObjectId' => $attachedObject->getId(),
		'editorMode' => DocumentOnlyOfficeEditorConfigBuilder::VISUAL_MODE_COMPACT,
	]);
}