Class HtmlHelperBackOfficeExtensions
Inheritance
System.Object
Namespace: Umbraco.Cms.Api.Management.Extensions
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public static class HtmlHelperBackOfficeExtensions
Methods
View SourceBackOfficeImportMapScriptAsync(IHtmlHelper, IJsonSerializer, IBackOfficePathGenerator, IPackageManifestService)
Outputs a script tag containing the import map for the BackOffice.
Declaration
public static async Task<IHtmlContent> BackOfficeImportMapScriptAsync(this IHtmlHelper html, IJsonSerializer jsonSerializer, IBackOfficePathGenerator backOfficePathGenerator, IPackageManifestService packageManifestService)
Parameters
| Type | Name | Description |
|---|---|---|
| IHtmlHelper | html | |
| IJsonSerializer | jsonSerializer | |
| IBackOfficePathGenerator | backOfficePathGenerator | |
| IPackageManifestService | packageManifestService |
Returns
| Type | Description |
|---|---|
| Task<IHtmlContent> | A |
Remarks
It will replace the token %CACHE_BUSTER% with the cache buster hash. It will also replace the /umbraco/backoffice path with the correct path for the BackOffice assets.