X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdraggableviews%2Fsrc%2FPlugin%2Fmigrate%2Fdestination%2FDraggableViews.php;fp=web%2Fmodules%2Fcontrib%2Fdraggableviews%2Fsrc%2FPlugin%2Fmigrate%2Fdestination%2FDraggableViews.php;h=0000000000000000000000000000000000000000;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hp=92f5e9f04af4d6d89ffa87e459564b51e9929d80;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/modules/contrib/draggableviews/src/Plugin/migrate/destination/DraggableViews.php b/web/modules/contrib/draggableviews/src/Plugin/migrate/destination/DraggableViews.php deleted file mode 100644 index 92f5e9f04..000000000 --- a/web/modules/contrib/draggableviews/src/Plugin/migrate/destination/DraggableViews.php +++ /dev/null @@ -1,82 +0,0 @@ - $row->getDestinationProperty('view_name'), - 'view_display' => $row->getDestinationProperty('view_display'), - 'args' => $row->getDestinationProperty('args'), - 'entity_id' => $row->getDestinationProperty('entity_id'), - 'weight' => $row->getDestinationProperty('weight'), - 'parent' => $row->getDestinationProperty('parent'), - ]; - $result = Database::getConnection()->insert('draggableviews_structure')->fields($record)->execute(); - return array($result); - } - - /** - * {@inheritdoc} - */ - public function getIds() { - return [ - 'dvid' => [ - 'type' => 'integer', - ], - ]; - } - - /** - * {@inheritdoc} - */ - public function fields(MigrationInterface $migration = NULL) { - return [ - 'dvid' => $this->t('The primarty identifier'), - 'view_name' => $this->t('The view name.'), - 'view_display' => $this->t('The view display.'), - 'args' => $this->t('The arguments.'), - 'entity_id' => $this->t('The entity id.'), - 'weight' => $this->t('The order weight.'), - 'parent' => $this->t('The parent entity id.'), - ]; - } - -}