AcquiaSearchIndex.php in Acquia Search 3.x
File
src/Plugin/migrate/source/AcquiaSearchIndex.php
View source
<?php
namespace Drupal\acquia_Search\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class AcquiaSearchIndex extends DrupalSqlBase {
public function query() {
return $this
->select('apachesolr_index_bundles', 'a')
->fields('a');
}
public function fields() {
return [
'env_id' => $this
->t('The name of the environment'),
'entity_type' => $this
->t('The type of entity.'),
'bundle' => $this
->t('The bundle to index.'),
];
}
public function getIds() {
$ids['env_id']['type'] = 'string';
$ids['bundle']['type'] = 'string';
return $ids;
}
}