You are here

public function CampaignMonitorListDeleteForm::getQuestion in Campaign Monitor 8

Same name and namespace in other branches
  1. 8.2 src/Form/CampaignMonitorListDeleteForm.php \Drupal\campaignmonitor\Form\CampaignMonitorListDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/CampaignMonitorListDeleteForm.php, line 31

Class

CampaignMonitorListDeleteForm
Defines a confirmation form for deleting mymodule data.

Namespace

Drupal\campaignmonitor\Form

Code

public function getQuestion() {
  $options = campaignmonitor_get_extended_list_settings($this->id);
  return t('Do you want to delete %name?', [
    '%name' => $options['name'],
  ]);
}