You are here

public function WebformAccessTypeDeleteForm::getDescription in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_access/src/WebformAccessTypeDeleteForm.php \Drupal\webform_access\WebformAccessTypeDeleteForm::getDescription()

Returns additional text to display as a description.

Return value

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

Overrides WebformConfigEntityDeleteFormBase::getDescription

File

modules/webform_access/src/WebformAccessTypeDeleteForm.php, line 20

Class

WebformAccessTypeDeleteForm
Provides a delete webform access type form.

Namespace

Drupal\webform_access

Code

public function getDescription() {
  return [
    'title' => [
      '#markup' => $this
        ->t('This action will…'),
    ],
    'list' => [
      '#theme' => 'item_list',
      '#items' => [
        $this
          ->t('Remove configuration'),
        $this
          ->t('Affect any access groups which use this type'),
      ],
    ],
  ];
}