function MigrateEntityContentValidationTest::mapMessageRecorder
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::mapMessageRecorder()
- 10 core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentValidationTest::mapMessageRecorder()
- 11.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.