You are here

public function WebformHandlerDeleteForm::getDescription in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformHandlerDeleteForm.php \Drupal\webform\Form\WebformHandlerDeleteForm::getDescription()

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides WebformDeleteFormBase::getDescription

File

src/Form/WebformHandlerDeleteForm.php, line 62

Class

WebformHandlerDeleteForm
Form for deleting a webform handler.

Namespace

Drupal\webform\Form

Code

public function getDescription() {
  return [
    'title' => [
      '#markup' => $this
        ->t('This action will…'),
    ],
    'list' => [
      '#theme' => 'item_list',
      '#items' => [
        $this
          ->t('Remove this handler'),
        $this
          ->t('Cancel all pending actions'),
      ],
    ],
  ];
}