3 namespace Drupal\tracker\Plugin\migrate\source\d7;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Drupal 7 tracker node source from database.
11 * id = "d7_tracker_node",
12 * source_module = "tracker"
15 class TrackerNode extends DrupalSqlBase {
20 public function query() {
21 return $this->select('tracker_node', 'tn')->fields('tn');
27 public function fields() {
29 'nid' => $this->t('The {node}.nid this record tracks.'),
30 'published' => $this->t('Boolean indicating whether the node is published.'),
31 'changed' => $this->t('The Unix timestamp when the node was most recently saved or commented on.'),
38 public function getIds() {
39 $ids['nid']['type'] = 'integer';