-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathEntityPickerPropertyEditor.cs
30 lines (26 loc) · 1.12 KB
/
EntityPickerPropertyEditor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.PropertyEditors;
using Umbraco.Cms.Core.Services;
namespace Umbraco.Cms.Integrations.PIM.Inriver
{
[DataEditor(
alias: Constants.PropertyEditorAlias,
name: "Inriver Entity Picker",
view: "~/App_Plugins/UmbracoCms.Integrations/PIM/Inriver/views/entitypicker.html",
Group = Core.Constants.PropertyEditors.Groups.Pickers,
Icon = "icon-box")]
public class EntityPickerPropertyEditor : DataEditor
{
private readonly IIOHelper _ioHelper;
private readonly IEditorConfigurationParser _editorConfigurationParser;
public EntityPickerPropertyEditor(IDataValueEditorFactory dataValueEditorFactory,
IIOHelper ioHelper,
IEditorConfigurationParser editorConfigurationParser)
: base(dataValueEditorFactory)
{
_ioHelper = ioHelper;
_editorConfigurationParser = editorConfigurationParser;
}
protected override IConfigurationEditor CreateConfigurationEditor() => new EntityPickerConfigurationEditor(_ioHelper, _editorConfigurationParser);
}
}