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
View SourceGetIcon(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. |
iconName |
Returns
Type | Description |
---|---|
Icon |
GetIcons()
Gets a list of all svg icons found at at the global icons path.
Declaration
IReadOnlyDictionary<string, string> GetIcons()
Returns
Type | Description |
---|---|
System. |