You are here

protected function SearchPage::values in Drupal 8

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

Return the values of the variables specified in the plugin configuration.

Return value

array An associative array where the keys are the variables specified in the plugin configuration and the values are the values found in the source. Only those values are returned that are actually in the database.

Overrides Variable::values

File

core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php, line 20

Class

SearchPage
Get node search rankings for core modules.

Namespace

Drupal\search\Plugin\migrate\source\d6

Code

protected function values() {

  // Add a module key to identify the source search provider, node. This value
  // is used in the EntitySearchPage destination plugin.
  return array_merge([
    'module' => 'node',
  ], parent::values());
}