
| Current Path : /var/www/html/dataninja.cn/core/modules/search/src/Plugin/migrate/source/d6/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/dataninja.cn/core/modules/search/src/Plugin/migrate/source/d6/SearchPage.php |
<?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;
}
}