You are here

public function AddPaymentMethodConfiguration::title in Payment 8.2

Returns the title for the payment method configuration add form.

Parameters

string $plugin_id:

Return value

string

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

File

src/Controller/AddPaymentMethodConfiguration.php, line 82

Class

AddPaymentMethodConfiguration
Handles the "add payment method configuration" route.

Namespace

Drupal\payment\Controller

Code

public function title($plugin_id) {
  $plugin_definition = $this->paymentMethodConfigurationManager
    ->getDefinition($plugin_id);
  return $this
    ->t('Add %label payment method configuration', [
    '%label' => $plugin_definition['label'],
  ]);
}