Table of Contents

Class IconController

Namespace
Umbraco.Cms.Web.BackOffice.Controllers
Assembly
Umbraco.Web.BackOffice.dll
[UmbracoRequireHttps]
[MiddlewareFilter(typeof(UnhandledExceptionLoggerFilter))]
public class IconController : UmbracoApiController
Inheritance
IconController

Constructors

IconController(IIconService)

public IconController(IIconService iconService)

Parameters

iconService IIconService

Methods

GetIcon(string)

Gets an IconModel containing the icon name and SvgString according to an icon name found at the global icons path

public IconModel? GetIcon(string iconName)

Parameters

iconName string

Returns

IconModel

GetIcons()

Gets a list of all svg icons found at at the global icons path.

public IReadOnlyDictionary<string, string>? GetIcons()

Returns

IReadOnlyDictionary<string, string>