You are here

public function FeedsParserResult::shiftItem in Feeds 8.2

@todo Move to a nextItem() based approach, not consuming the item array. Can only be done once we don't cache the entire batch object between page loads for batching anymore.

Return value

Next available item or NULL if there is none. Every returned item is removed from the internal array.

File

lib/Drupal/feeds/FeedsParserResult.php, line 34

Class

FeedsParserResult
A result of a parsing stage.

Namespace

Drupal\feeds

Code

public function shiftItem() {
  $this->current_item = array_shift($this->items);
  return $this->current_item;
}