public function PhotosImage::fields in Album Photos 8.5
Same name in this branch
- 8.5 src/Plugin/migrate/source/PhotosImage.php \Drupal\photos\Plugin\migrate\source\PhotosImage::fields()
- 8.5 src/Plugin/migrate/destination/PhotosImage.php \Drupal\photos\Plugin\migrate\destination\PhotosImage::fields()
Same name and namespace in other branches
- 8.4 src/Plugin/migrate/source/PhotosImage.php \Drupal\photos\Plugin\migrate\source\PhotosImage::fields()
- 6.0.x src/Plugin/migrate/source/PhotosImage.php \Drupal\photos\Plugin\migrate\source\PhotosImage::fields()
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
- src/Plugin/ migrate/ source/ PhotosImage.php, line 39 
Class
- PhotosImage
- Source plugin for photos image content.
Namespace
Drupal\photos\Plugin\migrate\sourceCode
public function fields() {
  $fields = [
    'fid' => $this
      ->t('File ID'),
    'pid' => $this
      ->t('Photos Album ID'),
    'title' => $this
      ->t('Image title'),
    'des' => $this
      ->t('Image description'),
    'wid' => $this
      ->t('Weight'),
    'count' => $this
      ->t('Image views count'),
    'comcount' => $this
      ->t('Image comment count'),
  ];
  return $fields;
}