You are here

public function ViewPayment::title in Payment 8.2

Returns the title for the payment view page.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

Return value

string

1 string reference to 'ViewPayment::title'
payment.routing.yml in ./payment.routing.yml
payment.routing.yml

File

src/Controller/ViewPayment.php, line 39

Class

ViewPayment
Handles the "view payment" route.

Namespace

Drupal\payment\Controller

Code

public function title(PaymentInterface $payment) {
  return $this
    ->t('Payment #@payment_id', [
    '@payment_id' => $payment
      ->id(),
  ]);
}