public function WebformEntityDeleteMultipleForm::getDescription in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformEntityDeleteMultipleForm.php \Drupal\webform\Form\WebformEntityDeleteMultipleForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides WebformDeleteMultipleFormBase::getDescription
File
- src/
Form/ WebformEntityDeleteMultipleForm.php, line 13
Class
- WebformEntityDeleteMultipleForm
- Provides a webform deletion confirmation form.
Namespace
Drupal\webform\FormCode
public function getDescription() {
// @see \Drupal\webform\WebformEntityDeleteForm::getDescription
return [
'title' => [
'#markup' => $this
->t('This action will…'),
],
'list' => [
'#theme' => 'item_list',
'#items' => [
$this
->t('Remove configuration'),
$this
->t('Delete all related submissions'),
$this
->formatPlural(count($this->selection), 'Affect any fields or nodes which reference this webform', 'Affect any fields or nodes which reference these webform', [
'@item' => $this->entityType
->getSingularLabel(),
'@items' => $this->entityType
->getPluralLabel(),
]),
],
],
];
}