Class IconService
Inheritance
System.Object
Namespace: Umbraco.Web.Services
Assembly: Umbraco.Web.dll
Syntax
public class IconService : IIconService
Constructors
View SourceIconService(IGlobalSettings, AppCaches)
Declaration
public IconService(IGlobalSettings globalSettings, AppCaches appCaches)
Parameters
Type | Name | Description |
---|---|---|
IGlobalSettings | globalSettings | |
AppCaches | appCaches |
Methods
View SourceGetAllIcons()
Gets a list of all svg icons found at at the global icons path.
Declaration
public IList<IconModel> GetAllIcons()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IconModel> | A list of IconModel |
GetIcon(String)
Gets the svg string for the icon name found at the global icons path
Declaration
public IconModel GetIcon(string iconName)
Parameters
Type | Name | Description |
---|---|---|
System.String | iconName |
Returns
Type | Description |
---|---|
IconModel |
GetIcons()
Gets a list of all svg icons found at at the global icons path.
Declaration
public IReadOnlyDictionary<string, string> GetIcons()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> |