/** * Get the File Type Icon * * @return string */ public function getFileIcon() { $source = $this->type == 'url' ? $this->getSource() : \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteDocumentRootPath() . '/' . $this->getSource(); return \Cx\Core_Modules\Media\Controller\MediaLibrary::getFileTypeIconWebPath($source, $this->getFileType()); }