function NullIdMap::getMessageIterator

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

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_map

Code

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.