You are here

public function SearchPage::fields 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::fields()
  2. 8 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage::fields()
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::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides Variable::fields

File

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

Class

SearchPage
Get search_active_modules and rankings for core modules.

Namespace

Drupal\search\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'module' => $this
      ->t('The module providing a search page.'),
    'status' => $this
      ->t('Whether or not this module is enabled for search.'),
  ];
}