public function Photos::fields in Album Photos 8.5
Same name in this branch
- 8.5 src/Plugin/migrate/source/Photos.php \Drupal\photos\Plugin\migrate\source\Photos::fields()
- 8.5 src/Plugin/migrate/destination/Photos.php \Drupal\photos\Plugin\migrate\destination\Photos::fields()
Same name and namespace in other branches
- 8.4 src/Plugin/migrate/source/Photos.php \Drupal\photos\Plugin\migrate\source\Photos::fields()
- 6.0.x src/Plugin/migrate/source/Photos.php \Drupal\photos\Plugin\migrate\source\Photos::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/ Photos.php, line 31
Class
- Photos
- Source plugin for photos album content.
Namespace
Drupal\photos\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'pid' => $this
->t('Photos Album ID'),
'fid' => $this
->t('Album Cover File ID'),
'wid' => $this
->t('Weight'),
'count' => $this
->t('Image count'),
'data' => $this
->t('Album data'),
];
return $fields;
}