You are here

public function PhotosAccess::fields in Album Photos 6.0.x

Same name in this branch
  1. 6.0.x photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::fields()
  2. 6.0.x photos_access/src/Plugin/migrate/destination/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\destination\PhotosAccess::fields()
Same name and namespace in other branches
  1. 8.5 photos_access/src/Plugin/migrate/destination/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\destination\PhotosAccess::fields()
  2. 8.4 photos_access/src/Plugin/migrate/destination/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\destination\PhotosAccess::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

photos_access/src/Plugin/migrate/destination/PhotosAccess.php, line 61

Class

PhotosAccess
Migrate photos_access destination.

Namespace

Drupal\photos_access\Plugin\migrate\destination

Code

public function fields(MigrationInterface $migration = NULL) {
  return [
    'id' => 'ID',
    'nid' => 'Node ID',
    'viewid' => 'Access type',
    'pass' => 'Password',
  ];
}