function MigrateIdMapInterface::getMessages
Same name in other branches
- 9 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getMessages()
- 8.9.x core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getMessages()
- 10 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getMessages()
Retrieves a traversable object of messages related to source records.
Parameters
array $source_id_values: (optional) The source identifier keyed values of the record, e.g. ['nid' => 5]. If empty (the default), all messages are retrieved.
int $level: (optional) Message severity. If NULL (the default), retrieve messages of all severities.
Return value
\Traversable Retrieves a traversable object of message objects of unspecified class. Each object has the following public properties:
- source_row_hash: the hash of the entire serialized source row data.
- message: the text of the message.
- level: one of MigrationInterface::MESSAGE_ERROR,
MigrationInterface::MESSAGE_WARNING, MigrationInterface::MESSAGE_NOTICE, MigrationInterface::MESSAGE_INFORMATIONAL.
2 methods override MigrateIdMapInterface::getMessages()
- NullIdMap::getMessages in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php - Sql::getMessages in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php
File
-
core/
modules/ migrate/ src/ Plugin/ MigrateIdMapInterface.php, line 123
Class
- MigrateIdMapInterface
- Defines an interface for migrate ID mappings.
Namespace
Drupal\migrate\PluginCode
public function getMessages(array $source_id_values = [], $level = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.