You are here

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

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

Class

PhotosCount
Source plugin for photos count content.

Namespace

Drupal\photos\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('ID'),
    'cid' => $this
      ->t('CID'),
    'changed' => $this
      ->t('Last updated'),
    'type' => $this
      ->t('Type'),
    'value' => $this
      ->t('Count value'),
  ];
  return $fields;
}