113 public function viewAction(
string $scope,
int $blockId,
int $fileId): ?array
115 if ($this->blockContainsFile($scope, $blockId, $fileId))
117 $fileInfo = \Bitrix\Landing\Connector\Disk::getFileInfo($fileId,
false);
121 $attributes = Viewer\ItemAttributes::tryBuildByFileId($fileInfo[
'ID'], $urlToDownload);
122 $attributes->setTitle($fileInfo[
'NAME']);
123 return $attributes->getAttributes();