protected function Json::fetchNextRow in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/Plugin/migrate_plus/data_parser/Json.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::fetchNextRow()
- 8.2 src/Plugin/migrate_plus/data_parser/Json.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::fetchNextRow()
- 8.3 src/Plugin/migrate_plus/data_parser/Json.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::fetchNextRow()
- 8.4 src/Plugin/migrate_plus/data_parser/Json.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::fetchNextRow()
Retrieves the next row of data from the open source URL, populating currentItem.
Overrides DataParserPluginBase::fetchNextRow
File
- src/
Plugin/ migrate_plus/ data_parser/ Json.php, line 166 - Contains Drupal\migrate_plus\Plugin\migrate_plus\data_parser\JSON.
Class
- Json
- Obtain JSON data for migration.
Namespace
Drupal\migrate_plus\Plugin\migrate_plus\data_parserCode
protected function fetchNextRow() {
$current = $this->iterator
->current();
if ($current) {
foreach ($this
->fieldSelectors() as $field_name => $selector) {
$this->currentItem[$field_name] = $current[$selector];
}
$this->iterator
->next();
}
}