SaaS CMS has officially launched! Learn more now.

Class PageShortcutValidator

Validates that when a shortcut (e.g. Shortcut or Fetchdata) is used that the property PageShortcutLink is set.

Inheritance
System.Object
PageShortcutValidator
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class PageShortcutValidator : Object, IValidate<PageData>, IValidate

Constructors

PageShortcutValidator(LocalizationService)

Initializes a new instance of the PageShortcutValidator class.

Declaration
public PageShortcutValidator(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService

Methods

Validate(PageData)

Validates the specified page.

Declaration
public IEnumerable<ValidationError> Validate(PageData page)
Parameters
Type Name Description
PageData page

The page.

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

Implements

Extension Methods