You are here

public function ConfigurePaymentType::title in Payment 8.2

Gets the title of the payment type configuration page.

Parameters

string $bundle: The payment type's plugin ID.

Return value

string

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

File

src/Controller/ConfigurePaymentType.php, line 80

Class

ConfigurePaymentType
Handles the "configure payment type" route.

Namespace

Drupal\payment\Controller

Code

public function title($bundle) {
  $definition = $this->paymentTypeManager
    ->getDefinition($bundle);
  return $definition['label'];
}