public function WebformVariantDeleteForm::getDescription in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformVariantDeleteForm.php \Drupal\webform\Form\WebformVariantDeleteForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides WebformDeleteFormBase::getDescription
File
- src/
Form/ WebformVariantDeleteForm.php, line 62
Class
- WebformVariantDeleteForm
- Form for deleting a webform variant.
Namespace
Drupal\webform\FormCode
public function getDescription() {
return [
'title' => [
'#markup' => $this
->t('This action will…'),
],
'list' => [
'#theme' => 'item_list',
'#items' => [
$this
->t('Remove this variant'),
],
],
];
}