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