You are here

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

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

Code

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;
}