You are here

public function WebformResultsClearForm::getConfirmInput in Webform 6.x

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

Returns confirm input to display.

Return value

array A renderable array containing confirm input.

Overrides WebformDeleteFormBase::getConfirmInput

File

src/Form/WebformResultsClearForm.php, line 88

Class

WebformResultsClearForm
Webform for webform results clear webform.

Namespace

Drupal\webform\Form

Code

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