public function WebformEntityDeleteForm::getDescription in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformEntityDeleteForm.php \Drupal\webform\WebformEntityDeleteForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides WebformConfigEntityDeleteFormBase::getDescription
File
- src/
WebformEntityDeleteForm.php, line 15
Class
- WebformEntityDeleteForm
- Provides a delete webform form.
Namespace
Drupal\webformCode
public function getDescription() {
// @see \Drupal\webform\Form\WebformEntityDeleteMultipleForm::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
->t('Affect any fields or nodes which reference this webform'),
],
],
];
}