Send email after Migrate Import in Drupal 8

Here’s an example of a barebones event subscriber to send an email when a Drupal migration finishes importing. The success vs failure logic isn’t working correctly, but you’ll get the gist.

The file structure looks like this:

mymodule.services.yml

mymodule.module

 

MymoduleMigrateSubscriber.php

 

Tagged with: , , ,
Posted in Development

Leave a Reply

Your email address will not be published. Required fields are marked *

*