You are here

public function D7SmsNumber::fields in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Plugin/migrate/source/D7SmsNumber.php \Drupal\sms\Plugin\migrate\source\D7SmsNumber::fields()
  2. 2.1.x src/Plugin/migrate/source/D7SmsNumber.php \Drupal\sms\Plugin\migrate\source\D7SmsNumber::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

1 call to D7SmsNumber::fields()
D7SmsNumber::query in src/Plugin/migrate/source/D7SmsNumber.php

File

src/Plugin/migrate/source/D7SmsNumber.php, line 20

Class

D7SmsNumber
Source plugin for D7 sms_user phone number.

Namespace

Drupal\sms\Plugin\migrate\source

Code

public function fields() {
  return [
    'uid' => $this
      ->t('User ID'),
    'number' => $this
      ->t('Phone number'),
    'status' => $this
      ->t('Verification Status'),
    'code' => $this
      ->t('Verification code'),
    'gateway' => $this
      ->t('Verification gateway'),
    'sleep_enabled' => $this
      ->t('Sleep enabled'),
    'sleep_start_time' => $this
      ->t('Sleep start time'),
    'sleep_end_time' => $this
      ->t('Sleep end time'),
    'sms_user_opt_out' => $this
      ->t('Opt out of SMS'),
  ];
}