You are here

protected function SearchPage::initializeIterator in Drupal 8

Same name and namespace in other branches
  1. 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 iteratable object of data for this source.

Overrides Variable::initializeIterator

File

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

Class

SearchPage
Get search_active_modules and rankings for core modules.

Namespace

Drupal\search\Plugin\migrate\source\d7

Code

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