You are here

public function ShipmentConfirmationResendForm::getQuestion in Commerce Shipping 8.2

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/ShipmentConfirmationResendForm.php, line 58

Class

ShipmentConfirmationResendForm
Provides a confirmation form for resending order shipment confirmations.

Namespace

Drupal\commerce_shipping\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to resend the shipment confirmation for %shipment for order %order?', [
    '%shipment' => $this->entity
      ->label(),
    '%order' => $this->entity
      ->getOrder()
      ->label(),
  ]);
}