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
iconServiceIIconService
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
iconNamestring
Returns
- IconModel
GetIcons()
Gets a list of all svg icons found at at the global icons path.
public IReadOnlyDictionary<string, string>? GetIcons()