You are here

public function CartLinksForm::getQuestion in Ubercart 8.4

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

uc_cart_links/src/Form/CartLinksForm.php, line 122

Class

CartLinksForm
Preprocesses a cart link, confirming with the user for destructive actions.

Namespace

Drupal\uc_cart_links\Form

Code

public function getQuestion() {
  return $this
    ->t('The current contents of your shopping cart will be lost. Are you sure you want to continue?');
}