public static function onMapDelete(MigrateMapDeleteEvent
$event) { static::
$numProcessed++;
} /**
* Displays any messages being logged to the ID map.
*
* @param \Drupal\migrate\Event\MigrateIdMapMessageEvent $event
* The message event.
*/
public static function onIdMapMessage(MigrateIdMapMessageEvent
$event) { if ($event->
getLevel() == MigrationInterface::MESSAGE_NOTICE ||
$event->
getLevel() == MigrationInterface::MESSAGE_INFORMATIONAL
) { $type = 'status';
} else { $type = 'error';
} $source_id_string =
implode(',',
$event->
getSourceIdValues());
$message =
t('Source ID @source_id: @message',
['@source_id' =>
$source_id_string, '@message' =>
$event->
getMessage()]);
static::
$messages->
display($message,
$type);
}}