You are here

public function ParserResult::addItems in Feeds 8.3

Adds a list of items to the result.

Parameters

\Drupal\feeds\Feeds\Item\ItemInterface[] $items: A list of feed items.

Return value

$this

Overrides ParserResultInterface::addItems

File

src/Result/ParserResult.php, line 23

Class

ParserResult
The result of a parsing stage.

Namespace

Drupal\feeds\Result

Code

public function addItems(array $items) {
  foreach ($items as $item) {
    $this
      ->push($item);
  }
  return $this;
}