Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / tracker / src / Plugin / migrate / source / d7 / TrackerNode.php
1 <?php
2
3 namespace Drupal\tracker\Plugin\migrate\source\d7;
4
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
6
7 /**
8  * Drupal 7 tracker node source from database.
9  *
10  * @MigrateSource(
11  *   id = "d7_tracker_node",
12  *   source_module = "tracker"
13  * )
14  */
15 class TrackerNode extends DrupalSqlBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function query() {
21     return $this->select('tracker_node', 'tn')->fields('tn');
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function fields() {
28     return [
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.'),
32     ];
33   }
34
35   /**
36    * {@inheritdoc}
37    */
38   public function getIds() {
39     $ids['nid']['type'] = 'integer';
40     return $ids;
41   }
42
43 }