You are here

public function InvoicePaymentForm::getDescription in Commerce Invoice 8.2

Returns additional text to display as a description.

Return value

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

Overrides ConfirmFormBase::getDescription

File

src/Form/InvoicePaymentForm.php, line 29

Class

InvoicePaymentForm

Namespace

Drupal\commerce_invoice\Form

Code

public function getDescription() {
  return $this
    ->t('Are you sure you want to pay the invoice %title?', [
    '%title' => $this->invoice
      ->label(),
  ]);
}