You are here

public function PhotosAccess::fields in Album Photos 8.5

Same name in this branch
  1. 8.5 photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::fields()
  2. 8.5 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.4 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/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\source

Code

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