You are here

public function Subscriber::fields in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d7/Subscriber.php \Drupal\simplenews\Plugin\migrate\source\d7\Subscriber::fields()
  2. 3.x src/Plugin/migrate/source/d7/Subscriber.php \Drupal\simplenews\Plugin\migrate\source\d7\Subscriber::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/Subscriber.php, line 21

Class

Subscriber
Migration source for Subscriber entries in D7.

Namespace

Drupal\simplenews\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'snid' => $this
      ->t('Subscriber ID'),
    'activated' => $this
      ->t('Activated'),
    'mail' => $this
      ->t('Subscriber\'s e-mail address'),
    'uid' => $this
      ->t('Corresponding user'),
    'language' => $this
      ->t('Language'),
    'changes' => $this
      ->t('Pending unconfirmed subscription changes'),
    'created' => $this
      ->t('Time of creation'),
  ];
}