public function PhotosAccess::fields in Album Photos 6.0.x
Same name in this branch
- 6.0.x photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::fields()
- 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
- 8.5 photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::fields()
- 8.4 photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::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
- photos_access/
src/ Plugin/ migrate/ source/ PhotosAccess.php, line 31
Class
- PhotosAccess
- Source plugin for photos album access.
Namespace
Drupal\photos_access\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'id' => $this
->t('ID'),
'nid' => $this
->t('Node ID'),
'viewid' => $this
->t('Access type'),
'pass' => $this
->t('Password'),
];
return $fields;
}