Sdl.Web.Common.Models.MediaItem.GetIconClass C# (CSharp) Method

GetIconClass() public method

Gets the name of a CSS class representing the Icon for this Media Item.
public GetIconClass ( ) : string
return string
        public virtual string GetIconClass()
        {
            string fileType;
            return FontAwesomeMimeTypeToIconClassMapping.TryGetValue(MimeType, out fileType) ? string.Format("fa-file-{0}-o", fileType) : "fa-file";
        }