Class IconController
Inheritance
System.Object
      Microsoft.AspNetCore.Mvc.ControllerBase
      
      
      Namespace: Umbraco.Cms.Web.BackOffice.Controllers
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[PluginController("UmbracoApi")]
[MiddlewareFilter(typeof(UnhandledExceptionLoggerFilter))]
public class IconController : UmbracoApiController
  Constructors
View SourceIconController(IIconService)
Declaration
public IconController(IIconService iconService)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IIconService | iconService | 
Methods
View SourceGetIcon(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
| Type | Description | 
|---|---|
| System.Nullable<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.Nullable<IReadOnlyDictionary<System.String, System.String>> |