public function NullIdMap::getMessageIterator in Drupal 8
Retrieves an iterator over messages relate 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
\Iterator Retrieves an iterator over the message rows.
Overrides MigrateIdMapInterface::getMessageIterator
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\MigrateIdMapInterface::getMessages() instead.
See also
https://www.drupal.org/node/3060969
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php, line 94
Class
- NullIdMap
- Defines the null ID map implementation.
Namespace
Drupal\migrate\Plugin\migrate\id_mapCode
public function getMessageIterator(array $source_id_values = [], $level = NULL) {
@trigger_error('getMessageIterator() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use getMessages() instead. See https://www.drupal.org/node/3060969', E_USER_DEPRECATED);
return $this
->getMessages($source_id_values, $level);
}