You are here

public function MigrateIdMapInterface::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.

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

2 methods override MigrateIdMapInterface::getMessageIterator()
NullIdMap::getMessageIterator in core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php
Retrieves an iterator over messages relate to source records.
Sql::getMessageIterator in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Retrieves an iterator over messages relate to source records.

File

core/modules/migrate/src/Plugin/MigrateIdMapInterface.php, line 141

Class

MigrateIdMapInterface
Defines an interface for migrate ID mappings.

Namespace

Drupal\migrate\Plugin

Code

public function getMessageIterator(array $source_id_values = [], $level = NULL);