Interface ITemplateContentParserService
Service for parsing template content to extract layout information.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface ITemplateContentParserService
Methods
View SourceLayoutTemplateAlias(string?)
Extracts the layout template alias from the view content.
Declaration
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 |
MasterTemplateAlias(string?)
Extracts the layout template alias from the view content.
Declaration
[Obsolete("Use LayoutTemplateAlias instead. Scheduled for removal in Umbraco 20.")]
string? MasterTemplateAlias(string? viewContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewContent | The view content to parse. |
Returns
| Type | Description |
|---|---|
| string | The alias of the layout template, or |