You are here

public function ForwardStatistics::fields in Forward 4.0.x

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

Returns an array of destination fields.

Derived classes must implement fields(), returning a list of available destination fields.

Return value

array

  • Keys: machine names of the fields
  • Values: Human-friendly descriptions of the fields.

Overrides MigrateDestinationInterface::fields

File

src/Plugin/migrate/destination/ForwardStatistics.php, line 54

Class

ForwardStatistics
Drupal 8 destination for forward statistics.

Namespace

Drupal\forward\Plugin\migrate\destination

Code

public function fields(MigrationInterface $migration = NULL) {
  return [
    'type' => $this
      ->t('The entity type, which is always "node".'),
    'bundle' => $this
      ->t('The entity bundle from the node type.'),
    'id' => $this
      ->t('The entity unique ID from the node ID.'),
    'last_forward_timestamp' => $this
      ->t('The date and time the entity was last forwarded.'),
    'forward_count' => $this
      ->t('The number of times the entity was forwarded.'),
    'clickthrough_count' => $this
      ->t('The number of times that the entity was subsequently visited from a link in a forward email.'),
  ];
}