View Source
Class IconController
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class IconController : UmbracoApiController, IDiscoverable
Constructors
View Source
IconController(IIconService)
Declaration
public IconController(IIconService iconService)
Parameters
Methods
View Source
GetAllIcons()
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")]
public IList<IconModel> GetAllIcons()
Returns
Type |
Description |
System.Collections.Generic.IList<IconModel> |
|
View Source
GetIcon(String)
Gets an IconModel containing the icon name and SvgString according to an icon name found at the global icons path
Declaration
public IconModel GetIcon(string iconName)
Parameters
Type |
Name |
Description |
System.String |
iconName |
|
Returns
View Source
GetIcons()
Gets a list of all svg icons found at at the global icons path.
Declaration
public JsonNetResult GetIcons()
Returns