But when it comes to generating the list of format options, in src/Form/ImportType.php's buildChoices method, the importer_type option is set to the request's resource name, which is not prefixed.
So ImporterRegistry::buildServiceName($importerType, 'xlsx') (in my case) returns "my_resource.xlsx" which is not registered in the ImporterRegistry since the service name is built with the "my_plugin" prefix.
In order to get an import form displayed I have type the tag with the full, prefixed resource name.
But when it comes to generating the list of format options, in
src/Form/ImportType.php
'sbuildChoices
method, theimporter_type
option is set to the request's resource name, which is not prefixed.So
ImporterRegistry::buildServiceName($importerType, 'xlsx')
(in my case) returns"my_resource.xlsx"
which is not registered in theImporterRegistry
since the service name is built with the"my_plugin"
prefix.I end up with only the
JSON
option.