public function Issue::fields in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/d7/Issue.php \Drupal\simplenews\Plugin\migrate\source\d7\Issue::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/ d7/ Issue.php, line 20
Class
- Issue
- Migration source for Subscriber issues in D7 (7.x-1.x branch).
Namespace
Drupal\simplenews\Plugin\migrate\source\d7Code
public function fields() {
return [
'nid' => $this
->t('{node} that is used as newsletter.'),
'tid' => $this
->t('The newsletter category ID this newsletter belongs to.'),
'status' => $this
->t('Sent status of the newsletter issue (0 = not sent; 1 = pending; 2 = sent, 3 = send on publish).'),
'sent_subscriber_count' => $this
->t('The count of subscribers to the newsletter when it was sent.'),
];
}