public function D7Webform::fields in Webform: Migrate 8.2
Same name and namespace in other branches
- 8 src/Plugin/migrate/source/d7/D7Webform.php \Drupal\webform_migrate\Plugin\migrate\source\d7\D7Webform::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/ D7Webform.php, line 91
Class
- D7Webform
- Drupal 7 webform source from database.
Namespace
Drupal\webform_migrate\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'nid' => $this
->t('Node ID'),
'title' => $this
->t('Webform title'),
'node_uid' => $this
->t('Webform author'),
'confirmation' => $this
->t('Confirmation message'),
'confirmation_type' => $this
->t('Confirmation type'),
'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'),
'confirmation_format' => $this
->t('The filter_format.format of the confirmation message.'),
'auto_save' => $this
->t('Boolean value for whether submissions to this form should be auto-saved between pages.'),
'progressbar_bar' => $this
->t('Boolean value indicating if the bar should be shown as part of the progress bar.'),
'progressbar_page_number' => $this
->t('Boolean value indicating if the page number should be shown as part of the progress bar.'),
'progressbar_percent' => $this
->t('Boolean value indicating if the percentage complete should be shown as part of the progress bar.'),
'progressbar_pagebreak_labels' => $this
->t('Boolean value indicating if the pagebreak labels should be included as part of the progress bar.'),
'progressbar_include_confirmation' => $this
->t('Boolean value indicating if the confirmation page should count as a page in the progress bar.'),
'progressbar_label_first' => $this
->t('Label for the first page of the progress bar.'),
'progressbar_label_confirmation' => $this
->t('Label for the last page of the progress bar.'),
'preview' => $this
->t('Boolean value indicating if this form includes a page for previewing the submission.'),
'preview_next_button_label' => $this
->t('The text for the button that will proceed to the preview page.'),
'preview_prev_button_label' => $this
->t('The text for the button to go backwards from the preview page.'),
'preview_title' => $this
->t('The title of the preview page, as used by the progress bar.'),
'preview_message' => $this
->t('Text shown on the preview page of the form.'),
'preview_message_format' => $this
->t('The filter_format.format of the preview page message.'),
'preview_excluded_components' => $this
->t('Comma-separated list of component IDs that should not be included in this form’s confirmation page.'),
'next_serial' => $this
->t('The serial number to give to the next submission to this webform.'),
'confidential' => $this
->t('Boolean value for whether to anonymize submissions.'),
];
return $fields;
}