Class TemplateContentParserService
Provides functionality for parsing template content to extract metadata such as the layout template alias.
Inheritance
object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class TemplateContentParserService : ITemplateContentParserService
Constructors
View SourceTemplateContentParserService()
Declaration
public TemplateContentParserService()
Methods
View SourceLayoutTemplateAlias(string?)
Extracts the layout template alias from the view content.
Declaration
public string? LayoutTemplateAlias(string? viewContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewContent | The view content to parse. |
Returns
| Type | Description |
|---|---|
| string | The alias of the layout template, or |