FeedMe Change Slug when Importing I asked this question previously before Feedme was acquired by Craft, though I haven't updated Feedme &amp; the code since now.
I'm getting the following error when processing my feeds. I'm trying to change my entries slug when they get imported but only on a certain feed - in this case - a feed with the title of 'merchants'

Argument 1 passed to craft\feedme\Plugin::craft\feedme{closure}()
must be an instance of craft\feedme\FeedProcessEvent, instance of
craft\feedme\events\FeedProcessEvent given - Plugin.php: 67

The code I'm trying to run in Plugin.php
public function init()
{
    parent::init();

    self::$plugin = $this;

    $this-&gt;_setPluginComponents();
    $this-&gt;_registerCpRoutes();
    $this-&gt;_registerTwigExtensions();
    $this-&gt;_registerVariables();

    Event::on(
      Process::class,
      Process::EVENT_STEP_BEFORE_ELEMENT_SAVE,
      function(FeedProcessEvent $event) {
        switch($event-&gt;feed['name']){
            case 'merchants':
                $element = $event-&gt;element;
                $element-&gt;slug = ElementHelper::createSlug($element-&gt;title.' '.'Coupon Codes &amp; Promo Codes');
                break;
        }
    });
}
I've managed to get it working with great help from Brad Bell and Oli.
The following code changes feedme slugs on Import.
use craft\feedme\events\ElementEvent;
use craft\helpers\ElementHelper;
use craft\elements\Entry;

Adding the following Event with the namespaces above works nicely.
        Event::on(
          Process::class,
          Process::EVENT_STEP_BEFORE_ELEMENT_SAVE,
          function(craft\feedme\events\FeedProcessEvent $event) {
            switch($event-&gt;feed['name']){
                case 'merchants':
                    $element = $event-&gt;element;
                    $element-&gt;slug = ElementHelper::createSlug($element-&gt;title.' '.'Whatever you'd like appended!');
                    break;
            }
        });