public function WebformResultsClearForm::getConfirmInput in Webform 8.5
Same name and namespace in other branches
- 6.x 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\FormCode
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,
];
}