Table of Contents

Class ContentLanguageCreate

Namespace
Kentico.Xperience.Admin.Base.UIPages
Assembly
Kentico.Xperience.Admin.Base.dll

Language creation page

public sealed class ContentLanguageCreate : CreatePage<ContentLanguageInfo, ContentLanguageEdit>, IPage
Inheritance
object
ContentLanguageCreate
Implements
Inherited Members
Extension Methods

Constructors

ContentLanguageCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IContentLanguageRetriever)

Initializes an instance of the ContentLanguageCreate class.

public ContentLanguageCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IContentLanguageRetriever contentLanguageRetriever)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator
contentLanguageRetriever IContentLanguageRetriever

Methods

ConfigurePage()

Set up page's configuration. Configures UI page.

public override Task ConfigurePage()

Returns

Task

GetFormItems()

Prepares form items for editing object of the specified ObjectType.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Returns the collection of form items.

GetFormItemsClientProperties()

Returns properties describing client form components for editing object.

protected override Task<IEnumerable<IFormItemClientProperties>> GetFormItemsClientProperties()

Returns

Task<IEnumerable<IFormItemClientProperties>>

Exceptions

InvalidOperationException

Thrown when object instance is null or data class info for ObjectType was not found.

SetFormData(ContentLanguageInfo, IFormFieldValueProvider)

Sets the infoObject.

protected override Task SetFormData(ContentLanguageInfo infoObject, IFormFieldValueProvider fieldValueProvider)

Parameters

infoObject ContentLanguageInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task