Neos.Media/Classes/Domain/Service/FileTypeIconService.php
public static function getIcon($filename): array
    {
        $fileExtention = self::extractFileExtension($filename);
        if (isset(self::$cache[$fileExtention])) {
            return self::$cache[$fileExtention];
        }

        $fileTypeIcon = new FileTypeIcon($fileExtention);

        self::$cache[$fileExtention] = [
            'src' => $fileTypeIcon->path(),
            'alt' => $fileTypeIcon->alt()
        ];

        return self::$cache[$fileExtention];
    }
public static function getIcon($filename): array
    {
        $fileExtention = self::extractFileExtension($filename);
        if (isset(self::$cache[$fileExtention])) {
            return self::$cache[$fileExtention];
        }

        $fileTypeIcon = new FileTypeIcon($fileExtention);

        self::$cache[$fileExtention] = [
            'src' => $fileTypeIcon->path(),
            'alt' => $fileTypeIcon->alt()
        ];

        return self::$cache[$fileExtention];
    }
public static function getIcon ( $ filename ) : array { $ fileExtention = self :: extractFileExtension ( $ filename ) ; if ( isset ( self :: $ cache [ $ fileExtention ] ) ) { return self :: $ cache [ $ fileExtention ] ; } $ fileTypeIcon = new FileTypeIcon ( $ fileExtention ) ; self :: $ cache [ $ fileExtention ] = [ 'src' => $ fileTypeIcon -> path ( ) , 'alt' => $ fileTypeIcon -> alt ( ) ] ; return self :: $ cache [ $ fileExtention ] ; }
Returns an icon for a file type within given dimensions

@param string $filename
@return array
Returns an icon for a file type within given dimensions