UNPKG

contentful-migration

Version:
23 lines 907 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EditorLayoutChangeFieldGroupControlAction = void 0; const action_1 = require("../action"); class EditorLayoutChangeFieldGroupControlAction extends action_1.EntityAction { constructor(contentTypeId, fieldGroupId, groupControl) { super(); this.contentTypeId = contentTypeId; this.fieldGroupId = fieldGroupId; this.groupControl = groupControl; } getEntityType() { return action_1.EntityType.EditorInterface; } getEntityId() { return this.contentTypeId; } async applyTo(editorInterfaces) { await editorInterfaces.updateGroupControl(this.fieldGroupId, this.groupControl); } } exports.EditorLayoutChangeFieldGroupControlAction = EditorLayoutChangeFieldGroupControlAction; //# sourceMappingURL=editor-layout-change-field-group-control.js.map