You are here

public function MigrateEntityContentValidationTest::mapMessageRecorder in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::mapMessageRecorder()

Reacts to map message event.

Parameters

\Drupal\migrate\Event\MigrateIdMapMessageEvent $event: The migration event.

File

core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php, line 149

Class

MigrateEntityContentValidationTest
Tests validation of an entity during migration.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function mapMessageRecorder(MigrateIdMapMessageEvent $event) {
  $this->messages[] = implode(',', $event
    ->getSourceIdValues()) . ': ' . $event
    ->getMessage();
}