You are here

public function ResumeContext::title in Payment 8.2

Returns the label of a field instance.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

Return value

string

1 string reference to 'ResumeContext::title'
payment_reference.routing.yml in modules/payment_reference/payment_reference.routing.yml
modules/payment_reference/payment_reference.routing.yml

File

modules/payment_reference/src/Controller/ResumeContext.php, line 70

Class

ResumeContext
Handles the "resume context" route.

Namespace

Drupal\payment_reference\Controller

Code

public function title(PaymentInterface $payment) {
  return $payment
    ->label();
}