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