function NodeCounter::fields

Same name in this branch
  1. 10 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
Same name in other branches
  1. 9 core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php \Drupal\statistics\Plugin\migrate\destination\NodeCounter::fields()
  2. 9 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
  3. 8.9.x core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php \Drupal\statistics\Plugin\migrate\destination\NodeCounter::fields()
  4. 8.9.x core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
  5. 11.x core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php \Drupal\statistics\Plugin\migrate\destination\NodeCounter::fields()
  6. 11.x core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()

Overrides MigrateDestinationInterface::fields

File

core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php, line 73

Class

NodeCounter
Destination for node counter.

Namespace

Drupal\statistics\Plugin\migrate\destination

Code

public function fields() {
    return [
        'nid' => $this->t('The ID of the node to which these statistics apply.'),
        'totalcount' => $this->t('The total number of times the node has been viewed.'),
        'daycount' => $this->t('The total number of times the node has been viewed today.'),
        'timestamp' => $this->t('The most recent time the node has been viewed.'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.