public function MigrateEntityContentValidationTest::mapMessageRecorder in Drupal 9
Same name and namespace in other branches
- 8 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\KernelCode
public function mapMessageRecorder(MigrateIdMapMessageEvent $event) {
$this->messages[] = implode(',', $event
->getSourceIdValues()) . ': ' . $event
->getMessage();
}