Interface IIconService
Namespace: Umbraco.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IIconService
Methods
View SourceGetAllIcons()
Gets a list of all svg icons found at at the global icons path.
Declaration
[Obsolete("This method should not be used - use GetIcons instead")]
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
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
IReadOnlyDictionary<string, string> GetIcons()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> |