class SearchPage

Same name in this branch
  1. 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage
  2. 9 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage
Same name and namespace in other branches
  1. 11.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage
  2. 11.x core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php \Drupal\search\Plugin\migrate\source\d6\SearchPage
  3. 11.x core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage
  4. 10 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage
  5. 10 core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php \Drupal\search\Plugin\migrate\source\d6\SearchPage
  6. 10 core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage
  7. 8.9.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage
  8. 8.9.x core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php \Drupal\search\Plugin\migrate\source\d6\SearchPage
  9. 8.9.x core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php \Drupal\search\Plugin\migrate\source\d7\SearchPage

Drupal 6 node search rankings for core modules source from database.

For available configuration keys, refer to the parent classes.

Plugin annotation


@MigrateSource(
  id = "d6_search_page",
  source_module = "search"
)

Hierarchy

Expanded class hierarchy of SearchPage

See also

\Drupal\migrate_drupal\Plugin\migrate\source\Variable

\Drupal\migrate\Plugin\migrate\source\SqlBase

\Drupal\migrate\Plugin\migrate\source\SourcePluginBase

File

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

Namespace

Drupal\search\Plugin\migrate\source\d6
View source
class SearchPage extends Variable {
  
  /**
   * {@inheritdoc}
   */
  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());
  }
  
  /**
   * {@inheritdoc}
   */
  public function fields() {
    return [
      'module' => $this->t('The module providing a search page.'),
    ];
  }
  
  /**
   * {@inheritdoc}
   */
  public function getIds() {
    $ids['module']['type'] = 'string';
    return $ids;
  }

}

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