Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example / src / Plugin / migrate / source / BeerComment.php
index 217fad262f9c3f213ed60d54d41d0ea014e120ce..b5d446a3ffccb3180da51aef75e6c9c4ff071ca8 100644 (file)
@@ -17,10 +17,19 @@ class BeerComment extends SqlBase {
    * {@inheritdoc}
    */
   public function query() {
+    $fields = [
+      'cid',
+      'cid_parent',
+      'name',
+      'mail',
+      'aid',
+      'body',
+      'bid',
+      'subject',
+    ];
     $query = $this->select('migrate_example_beer_comment', 'mec')
-                 ->fields('mec', ['cid', 'cid_parent', 'name', 'mail', 'aid',
-                   'body', 'bid', 'subject'])
-                 ->orderBy('cid_parent', 'ASC');
+      ->fields('mec', $fields)
+      ->orderBy('cid_parent', 'ASC');
     return $query;
   }