public function WebformDeleteMultipleFormBase::getQuestion in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformDeleteMultipleFormBase.php \Drupal\webform\Form\WebformDeleteMultipleFormBase::getQuestion()
Returns the question to ask the user.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.
Overrides DeleteMultipleForm::getQuestion
File
- src/
Form/ WebformDeleteMultipleFormBase.php, line 61
Class
- WebformDeleteMultipleFormBase
- Provides an entities deletion confirmation form.
Namespace
Drupal\webform\FormCode
public function getQuestion() {
return $this
->formatPlural(count($this->selection), 'Delete this @item?', 'Delete these @items?', [
'@item' => $this->entityType
->getSingularLabel(),
'@items' => $this->entityType
->getPluralLabel(),
]);
}