You are here

public function ForwardStatistics::fields in Forward 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/ForwardStatistics.php \Drupal\forward\Plugin\migrate\source\ForwardStatistics::fields()
  2. 8 src/Plugin/migrate/destination/ForwardStatistics.php \Drupal\forward\Plugin\migrate\destination\ForwardStatistics::fields()
Same name and namespace in other branches
  1. 8.3 src/Plugin/migrate/source/ForwardStatistics.php \Drupal\forward\Plugin\migrate\source\ForwardStatistics::fields()
  2. 8.2 src/Plugin/migrate/source/ForwardStatistics.php \Drupal\forward\Plugin\migrate\source\ForwardStatistics::fields()
  3. 4.x src/Plugin/migrate/source/ForwardStatistics.php \Drupal\forward\Plugin\migrate\source\ForwardStatistics::fields()
  4. 4.0.x src/Plugin/migrate/source/ForwardStatistics.php \Drupal\forward\Plugin\migrate\source\ForwardStatistics::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/ForwardStatistics.php, line 37

Class

ForwardStatistics
Forward statistics source.

Namespace

Drupal\forward\Plugin\migrate\source

Code

public function fields() {
  return [
    'nid' => $this
      ->t('Primary key: the node ID.'),
    'type' => $this
      ->t('The node type or bundle.'),
    'last_forward_timestamp' => $this
      ->t('The date and time the node was last forwarded.'),
    'forward_count' => $this
      ->t('The number of times the node was forwarded.'),
    'clickthrough_count' => $this
      ->t('The number of times that the node was subsequently visited from a link in a forward email.'),
  ];
}