SaaS CMS has officially launched! Learn more now.

Interface IModelTemplateTagProvider

Defines signature for a provider that resolves tags for models that are used to resolve templates through ITemplateResolver

Namespace: EPiServer.Web.Templating
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public interface IModelTemplateTagProvider

Properties

Order

Specifies in which order the provider should be called

Declaration
int Order { get; }
Property Value
Type Description
System.Int32

Methods

Resolve(ModelExplorer, ViewContext)

Resolves a tag for a model.

Declaration
IEnumerable<string> Resolve(ModelExplorer modelExplorer, ViewContext viewContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer

An explorer for the model for which tags are resolved

Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext

The context that is used during resolving.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

All tags that could be resolved

Remarks

The order of resolved tags should be prioritized. For example ITemplateResolver will resolve templates from tags in a prioritized order.

Extension Methods