Allow multiple importer plugins by entity type

Created on 22 February 2024, 11 months ago

Problem/Motivation

I have two modules that implement importer for the same entity type. But only the last defined can be used, if that importer have a problem and don't work I can't the other importer.

Steps to reproduce

Create two modules, and create a importer plugin in each module. Only one is visible in import page.

Proposed resolution

In ImporterForm::getEntityTypeOptions() don't use the entity type ID how key to options, instead, use the plugin ID. Later, in ::submitForm(), and ::buildForm(), get the entity type from the plugin definition.

Remaining tasks

- [ ] Change option key in ImporterForm::getEntityTypeOptions().
- [ ] Fix ::buildForm() bundle detection.
- [ ] Fix ::submitForm() entity type selection.

User interface changes

With this changes we can see all importer plugins defined.

API changes

N\A

Data model changes

N\A

Feature request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇪🇸Spain psf_ Huelva

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @psf_
  • Issue was unassigned.
  • Status changed to Closed: works as designed 11 months ago
  • 🇪🇸Spain psf_ Huelva

    After select entity type the module display a select with all plugins of selected entity type.

    Sorry :_ D

Production build 0.71.5 2024