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'
File
- src/
Controller/ ViewPayment.php, line 39
Class
- ViewPayment
- Handles the "view payment" route.
Namespace
Drupal\payment\ControllerCode
public function title(PaymentInterface $payment) {
return $this
->t('Payment #@payment_id', [
'@payment_id' => $payment
->id(),
]);
}