contentful-migration
Version:
Migration tooling for contentful
22 lines • 759 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EditorLayoutDeleteFieldAction = void 0;
const action_1 = require("../action");
class EditorLayoutDeleteFieldAction extends action_1.EntityAction {
constructor(contentTypeId, fieldId) {
super();
this.contentTypeId = contentTypeId;
this.fieldId = fieldId;
}
getEntityType() {
return action_1.EntityType.EditorInterface;
}
getEntityId() {
return this.contentTypeId;
}
async applyTo(editorInterfaces) {
await editorInterfaces.deleteFieldFromEditorLayout(this.fieldId);
}
}
exports.EditorLayoutDeleteFieldAction = EditorLayoutDeleteFieldAction;
//# sourceMappingURL=editor-layout-delete-field.js.map