public function D6Webform::fields in Webform: Migrate 8
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/d6/D6Webform.php \Drupal\webform_migrate\Plugin\migrate\source\d6\D6Webform::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/ D6Webform.php, line 76
Class
- D6Webform
- Drupal 6 webform source from database.
Namespace
Drupal\webform_migrate\Plugin\migrate\source\d6Code
public function fields() {
$fields = [
'nid' => $this
->t('Node ID'),
'title' => $this
->t('Webform title'),
'body' => $this
->t('Body'),
'format' => $this
->t('Body format'),
'node_uid' => $this
->t('Webform author'),
'confirmation' => $this
->t('Confirmation message'),
'confirmation_type' => $this
->t('Confirmation type'),
'teaser' => $this
->t('Teaser'),
'status' => $this
->t('Status'),
'submit_text' => $this
->t('Submission text'),
'submit_limit' => $this
->t('Submission limit'),
'submit_interval' => $this
->t('Submission interval'),
'submit_notice' => $this
->t('Submission notice'),
'allow_draft' => $this
->t('Draft submission allowed'),
'redirect_url' => $this
->t('Redirect url'),
'block' => $this
->t('Block'),
'auto_save' => $this
->t('Automatic save'),
'total_submit_limit' => $this
->t('Total submission limit'),
'total_submit_interval' => $this
->t('Total submission interval'),
'webform_id' => $this
->t('Id to be used for Webform'),
'elements' => $this
->t('Elements for the Webform'),
];
return $fields;
}