• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/volume/file.php
  • Класс: BitrixDiskVolumeFile
  • Вызов: File::getTitle
static function getTitle(VolumeFragment $fragment): ?string
{
	$file = $fragment->getFile();
	if (!$file instanceof DiskFile)
	{
		throw new ArgumentTypeException('Fragment must be subclass of '.DiskFile::className());
	}

	return $file->getName();
}