You are here

public function Delete::getQuestion in SimpleAds 8

Same name in this branch
  1. 8 src/Form/Groups/Delete.php \Drupal\simpleads\Form\Groups\Delete::getQuestion()
  2. 8 src/Form/Ads/Delete.php \Drupal\simpleads\Form\Ads\Delete::getQuestion()
  3. 8 src/Form/Campaigns/Delete.php \Drupal\simpleads\Form\Campaigns\Delete::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/Campaigns/Delete.php, line 27

Class

Delete
Delete advertisement campaign form.

Namespace

Drupal\simpleads\Form\Campaigns

Code

public function getQuestion() {
  return t('Are you sure you would like to delete <em>%name</em> campaign?', [
    '%name' => $this->campaign
      ->getCampaignName(),
  ]);
}