Click or drag to resize
IPageTemplateFilterFilter Method
Applies filtering on the given pageTemplates collection based on the given context.

Namespace: Kentico.PageBuilder.Web.Mvc.PageTemplates
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
IEnumerable<PageTemplateDefinition> Filter(
	IEnumerable<PageTemplateDefinition> pageTemplates,
	PageTemplateFilterContext context
)

Parameters

pageTemplates
Type: System.Collections.GenericIEnumerablePageTemplateDefinition
Page template collection to filter.
context
Type: Kentico.PageBuilder.Web.Mvc.PageTemplatesPageTemplateFilterContext
The context that provides information about where the page templates are about to be used.

Return Value

Type: IEnumerablePageTemplateDefinition
Filtered page templates.
See Also