You are here

public function WebformSubmissionsPurgeForm::getConfirmInput in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformSubmissionsPurgeForm.php \Drupal\webform\Form\WebformSubmissionsPurgeForm::getConfirmInput()

Returns confirm input to display.

Return value

array A renderable array containing confirm input.

Overrides WebformDeleteFormBase::getConfirmInput

File

src/Form/WebformSubmissionsPurgeForm.php, line 93

Class

WebformSubmissionsPurgeForm
Webform for webform submission purge webform.

Namespace

Drupal\webform\Form

Code

public function getConfirmInput() {
  return [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Yes, I want to purge all submissions'),
    '#required' => TRUE,
  ];
}