You are here

protected function Soap::fetchNextRow in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate_plus/data_parser/Soap.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Soap::fetchNextRow()
  2. 8.2 src/Plugin/migrate_plus/data_parser/Soap.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Soap::fetchNextRow()
  3. 8.3 src/Plugin/migrate_plus/data_parser/Soap.php \Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Soap::fetchNextRow()

Retrieves the next row of data. populating currentItem.

Retrieves from the open source URL.

Overrides DataParserPluginBase::fetchNextRow

File

src/Plugin/migrate_plus/data_parser/Soap.php, line 123

Class

Soap
Obtain SOAP data for migration.

Namespace

Drupal\migrate_plus\Plugin\migrate_plus\data_parser

Code

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