You are here

public function Item::getIterator in Search API 8

File

src/Item/Item.php, line 458

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

public function getIterator() {
  return new \ArrayIterator($this
    ->getFields());
}