You are here

public function DuplicatePaymentMethodConfiguration::title in Payment 8.2

Returns the title for the payment method configuration duplicate form.

Parameters

\Drupal\payment\Entity\PaymentMethodConfigurationInterface $payment_method_configuration:

Return value

string

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

File

src/Controller/DuplicatePaymentMethodConfiguration.php, line 60

Class

DuplicatePaymentMethodConfiguration
Handles the "duplicate payment method configuration" route.

Namespace

Drupal\payment\Controller

Code

public function title(PaymentMethodConfigurationInterface $payment_method_configuration) {
  return $this
    ->t('Duplicate %label', [
    '%label' => $payment_method_configuration
      ->label(),
  ]);
}