2

I am trying to write a plugin for

\Magento\ImportExport\Model\Import\AbstractSource::current

using

<type name="Magento\ImportExport\Model\Import\AbstractSource">
    <plugin name="firegento_extendedimport_trim_row_data" type="FireGento\ExtendedImport\Plugin\TrimRowData" />
</type>

I also tried

<type name="Magento\ImportExport\Model\Import\Source\Csv">
    <plugin name="firegento_extendedimport_trim_row_data" type="FireGento\ExtendedImport\Plugin\TrimRowData" />
</type>

But in the debugger the interceptor just does not seem to be generated.

1 Answer 1

3

The class does not seem to be generated via object manager, but via new $className in

\Magento\ImportExport\Model\Import\Adapter::factory
1
  • 1
    OMG, is it....?
    – Sohel Rana
    Apr 26, 2019 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.