Table of Contents

Class ContentLanguageEdit

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

General tab of the language edit page.

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

Constructors

ContentLanguageEdit(IFormComponentMapper, IFormDataBinder, IContentLanguageRetriever)

Initializes a new instance of the ContentLanguageEdit class.

public ContentLanguageEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IContentLanguageRetriever contentLanguageRetriever)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
contentLanguageRetriever IContentLanguageRetriever

Properties

EditContentLanguageNameEvent

Edit language name event.

public EditContentLanguageNameHandler EditContentLanguageNameEvent { get; }

Property Value

EditContentLanguageNameHandler

ObjectId

ID of the language.

[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

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

SubmitInternal(FormSubmissionCommandArguments, ICollection<IFormItem>, IFormFieldValueProvider)

Handles the internal specific processing of form submit command.

protected override Task<ICommandResponse> SubmitInternal(FormSubmissionCommandArguments args, ICollection<IFormItem> items, IFormFieldValueProvider formFieldValueProvider)

Parameters

args FormSubmissionCommandArguments

Form submission arguments.

items ICollection<IFormItem>

Form items with bound component values.

formFieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task<ICommandResponse>

Returns the form submission result.

Remarks

This method is called by the default implementation of the Submit(FormSubmissionCommandArguments) method.

See Also