Class EmailTemplateCreate
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
Email template creation page.
public sealed class EmailTemplateCreate : CreatePage<EmailTemplateInfo, EmailTemplateCode>, IPage
- Inheritance
-
objectEmailTemplateCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
EmailTemplateCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IEmailTemplateDefaultCodeProvider)
Initializes an instance of the EmailTemplateCreate class.
public EmailTemplateCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IEmailTemplateDefaultCodeProvider emailTemplateDefaultCodeProvider)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGeneratoremailTemplateDefaultCodeProvider
IEmailTemplateDefaultCodeProvider
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
FinalizeInfoObject(EmailTemplateInfo, IFormFieldValueProvider, CancellationToken)
Allows to modify values of infoObject
before validation and saving.
protected override Task FinalizeInfoObject(EmailTemplateInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)
Parameters
infoObject
EmailTemplateInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
cancellationToken
CancellationTokenThe cancellation instruction.
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.