/** * @param \Cms\Data\Media $mediaItem * * @return MediaInfoStorageItem */ protected function createMediaInfoStorageItem($mediaItem) { $filePath = $this->mediaDirectory . DIRECTORY_SEPARATOR . $mediaItem->getFile(); return new MediaInfoStorageItem($mediaItem->getId(), $filePath, $mediaItem->getName(), $mediaItem->getSize(), $mediaItem->getLastUpdate(), $this->getIconHelper()->getIconFilePath($filePath), $this->websiteId); }