Call to deprecated function drush_print().

This needs to be changed in drupal 8.9 and higher to:

use Drush\Drush;
Drush::output()->writeln($result. ' nodes '.$name.' imported.');

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!