- Issue created by @valthebald
- Merge request !1123461371: Allow event handlers to prevent import/export → (Open) created by valthebald
It would be good to allow event subscribers to prevent actual import or export.
Sample scenario: for an entity that has entity reference fields, content editors want to sync only the "main" entity, leaving referenced entities unchanged (for example, they are not ready to be published)
Introduce ContentImportException and ContentExportException classes
Wrap $this->eventDispatcher->dispatch() in try/catch.
Catch ContentImportException/ContentExportException and do not call doImport()/doExport()
Write the patch
Backport to 1.4.x
No UI changes
Active
2.0
Code
The patch should be considered for backport to the 2.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.