You are here

public function D7WebformSubmission::fields in Webform: Migrate 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d7/D7WebformSubmission.php \Drupal\webform_migrate\Plugin\migrate\source\d7\D7WebformSubmission::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/D7WebformSubmission.php, line 41

Class

D7WebformSubmission
Drupal 7 webform submission source from database.

Namespace

Drupal\webform_migrate\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'nid' => $this
      ->t('Webform node Id'),
    'sid' => $this
      ->t('Webform submission Id'),
    'uid' => $this
      ->t('User Id of submitter'),
    'submitted' => $this
      ->t('Submission timestamp'),
    'remote_addr' => $this
      ->t('IP Address of submitter'),
    'is_draft' => $this
      ->t('Whether this submission is draft'),
    'webform_id' => $this
      ->t('Id to be used for Webform'),
    'webform_data' => $this
      ->t('Webform submitted data'),
    'webform_uri' => $this
      ->t('Submission uri'),
  ];
  return $fields;
}