SearchPage.php

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

Namespace

Drupal\search\Plugin\migrate\source\d6

File

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

View source
<?php

namespace Drupal\search\Plugin\migrate\source\d6;

use Drupal\migrate_drupal\Plugin\migrate\source\Variable;

/**
 * Get node search rankings for core modules.
 *
 * @MigrateSource(
 *   id = "d6_search_page",
 *   source_module = "search"
 * )
 */
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;
    }

}

Classes

Title Deprecated Summary
SearchPage Get node search rankings for core modules.

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