You are here

protected function SearchPage::initializeIterator in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::initializeIterator()
  2. 9 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::initializeIterator()

Initializes the iterator with the source data.

Return value

\Iterator Returns an iterable object of data for this source.

Overrides Variable::initializeIterator

1 call to SearchPage::initializeIterator()
SearchPage::doCount in core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php
Gets the source count using countQuery().

File

core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php, line 27

Class

SearchPage
Drupal 7 search active core modules and rankings source from database.

Namespace

Drupal\search\Plugin\migrate\source\d7

Code

protected function initializeIterator() {
  return new \ArrayIterator($this
    ->values());
}