public function getTypeIconPath($typeComplete)
    {
        list($type) = explode(':', $typeComplete);
        $name = str_replace(':', '_', $typeComplete);

        if ($this->conf['resultListTypeIcon'][$name]) {
            // custom icons defined by typoscript
            return $this->conf['resultListTypeIcon'][$name]['file'];
        } else {
            // default icons from ext:ke_search
            $extensionIconPath = 'EXT:ke_search/Resources/Public/Icons/types/' . $name . '.gif';
            if (is_file(GeneralUtility::getFileAbsFileName($extensionIconPath))) {
                return $extensionIconPath;
            } else if ($type == 'file') {
                // fallback for file results: use default if no image for this file extension is available
                return 'EXT:ke_search/Resources/Public/Icons/types/file.gif';
            } else {
                // fallback if no icon found
                return 'EXT:ke_search/Resources/Public/Icons/types/default.gif';
            }
        }
    }
public function getTypeIconPath($typeComplete)
    {
        list($type) = explode(':', $typeComplete);
        $name = str_replace(':', '_', $typeComplete);

        if ($this->conf['resultListTypeIcon'][$name]) {
            // custom icons defined by typoscript
            return $this->conf['resultListTypeIcon'][$name]['file'];
        } else {
            // default icons from ext:ke_search
            $extensionIconPath = 'EXT:ke_search/Resources/Public/Icons/types/' . $name . '.gif';
            if (is_file(GeneralUtility::getFileAbsFileName($extensionIconPath))) {
                return $extensionIconPath;
            } else if ($type == 'file') {
                // fallback for file results: use default if no image for this file extension is available
                return 'EXT:ke_search/Resources/Public/Icons/types/file.gif';
            } else {
                // fallback if no icon found
                return 'EXT:ke_search/Resources/Public/Icons/types/default.gif';
            }
        }
    }
public function getTypeIconPath ( $ typeComplete ) { list ( $ type ) = explode ( ':' , $ typeComplete ) ; $ name = str_replace ( ':' , '_' , $ typeComplete ) ; if ( $ this -> conf [ 'resultListTypeIcon' ] [ $ name ] ) { // custom icons defined by typoscript return $ this -> conf [ 'resultListTypeIcon' ] [ $ name ] [ 'file' ] ; } else { // default icons from ext:ke_search $ extensionIconPath = 'EXT:ke_search/Resources/Public/Icons/types/' . $ name . '.gif' ; if ( is_file ( GeneralUtility :: getFileAbsFileName ( $ extensionIconPath ) ) ) { return $ extensionIconPath ; } else if ( $ type == 'file' ) { // fallback for file results: use default if no image for this file extension is available return 'EXT:ke_search/Resources/Public/Icons/types/file.gif' ; } else { // fallback if no icon found return 'EXT:ke_search/Resources/Public/Icons/types/default.gif' ; } } }
get path for type icon used for rendering in fluid

@param $type
@return string the path to the type icon file
get path for type icon used for rendering in fluid