You are here

public function Newsletter::fields in Simplenews 8

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

Class

Newsletter
Migration source for Newsletter entities in D7.

Namespace

Drupal\simplenews\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'newsletter_id' => $this
      ->t('Newsletter ID'),
    'name' => $this
      ->t('Name'),
    'description' => $this
      ->t('Description'),
    'format' => $this
      ->t('HTML or plaintext'),
    'priority' => $this
      ->t('Priority'),
    'receipt' => $this
      ->t('Request read receipt'),
    'from_name' => $this
      ->t('Name of the e-mail author'),
    'email_subject' => $this
      ->t('Newsletter subject'),
    'from_address' => $this
      ->t('E-mail author address'),
    'hyperlinks' => $this
      ->t('Indicates if hyperlinks should be kept inline or extracted'),
    'new_account' => $this
      ->t('Indicates how to integrate with the register form'),
    'opt_inout' => $this
      ->t('Defines the Opt-In/out options'),
    'block' => $this
      ->t('TRUE if a block should be provided for this newsletter'),
    'weight' => $this
      ->t('Weight of the newsletter when displayed in listings'),
  ];
}