You are here

public function DraggableViews::fields in DraggableViews 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/migrate/destination/DraggableViews.php \Drupal\draggableviews\Plugin\migrate\destination\DraggableViews::fields()

Returns an array of destination fields.

Derived classes must implement fields(), returning a list of available destination fields.

Return value

array

  • Keys: machine names of the fields
  • Values: Human-friendly descriptions of the fields.

Overrides MigrateDestinationInterface::fields

File

src/Plugin/migrate/destination/DraggableViews.php, line 49

Class

DraggableViews
Defines destination plugin for Draggableviews.

Namespace

Drupal\draggableviews\Plugin\migrate\destination

Code

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.'),
  ];
}