Registering Transformers
1 min
When creating transformers in a custom module we must register them with the pipelines.
Add the namespace for your transformer directory (e.g. Vendor\Module\Pipeline\Transformer) to the namespaces argument for the TransformerManager.
<type name="Klevu\PlatformPipelines\ObjectManager\TransformerManager">
<arguments>
<argument name="namespaces" xsi:type="array">
<!-- Change the name of this item to match the directory containing your transformer classes -->
<item name="Vendor\Module\Pipeline\Transformer"
xsi:type="const">Klevu\Pipelines\ObjectManager\ObjectManagerInterface::PRIORITY_NAMESPACE_SORT_ORDER</item>
</argument>
</arguments>
</type>