You are here

public function WebformDeleteMultipleFormBase::getConfirmInput in Webform 8.5

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

Returns confirm input to display.

Return value

array A renderable array containing confirm input.

1 call to WebformDeleteMultipleFormBase::getConfirmInput()
WebformDeleteMultipleFormBase::buildForm in src/Form/WebformDeleteMultipleFormBase.php
Form constructor.

File

src/Form/WebformDeleteMultipleFormBase.php, line 99

Class

WebformDeleteMultipleFormBase
Provides an entities deletion confirmation form.

Namespace

Drupal\webform\Form

Code

public function getConfirmInput() {
  return [
    '#type' => 'checkbox',
    '#title' => $this
      ->formatPlural(count($this->selection), 'Yes, I want to delete this @item?', 'Yes, I want to delete these @items?', [
      '@item' => $this->entityType
        ->getSingularLabel(),
      '@items' => $this->entityType
        ->getPluralLabel(),
    ]),
    '#required' => TRUE,
  ];
}