public function D6WebformSubmission::fields in Webform: Migrate 8.2
Same name and namespace in other branches
- 8 src/Plugin/migrate/source/d6/D6WebformSubmission.php \Drupal\webform_migrate\Plugin\migrate\source\d6\D6WebformSubmission::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/ d6/ D6WebformSubmission.php, line 41
Class
- D6WebformSubmission
- Drupal 6 webform submission source from database.
Namespace
Drupal\webform_migrate\Plugin\migrate\source\d6Code
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;
}