public function Sql::clearMessages in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::clearMessages()
- 9 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::clearMessages()
Clears all messages from the map.
Overrides MigrateIdMapInterface::clearMessages
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php, line 876
Class
- Sql
- Defines the sql based ID map implementation.
Namespace
Drupal\migrate\Plugin\migrate\id_mapCode
public function clearMessages() {
$this
->getDatabase()
->truncate($this
->messageTableName())
->execute();
}