private function AdminForm::buildConfirmationForm in Webform CiviCRM Integration 8.5
Display confirmation message and buttons before deleting webform components
Return value
array
1 call to AdminForm::buildConfirmationForm()
- AdminForm::buildForm in src/
AdminForm.php - Build admin form for civicrm tab of a webform
File
- src/
AdminForm.php, line 197 - Webform CiviCRM module's admin form.
Class
- AdminForm
- @file Webform CiviCRM module's admin form.
Namespace
Drupal\webform_civicrmCode
private function buildConfirmationForm() {
$this->form['#prefix'] = $this->form_state
->get('msg');
$this->form['cancel'] = $this->form['disable'] = $this->form['delete'] = [
'#type' => 'submit',
];
$this->form['delete']['#value'] = t('Remove Fields and Save Settings');
$this->form['disable']['#value'] = t('Leave Fields and Save Settings');
// Disable `disable` until it is support.
$this->form['disable']['#disabled'] = TRUE;
$this->form['cancel']['#value'] = t('Cancel (go back)');
return $this->form;
}