function SearchPage::prepareRow

Same name in other branches
  1. 9 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::prepareRow()
  2. 8.9.x core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::prepareRow()
  3. 11.x core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::prepareRow()

Overrides SourcePluginBase::prepareRow

File

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

Class

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

Namespace

Drupal\search\Plugin\migrate\source\d7

Code

public function prepareRow(Row $row) {
    $exists = $this->moduleExists($row->getSourceProperty('module'));
    $row->setSourceProperty('module_exists', $exists);
    return parent::prepareRow($row);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.