/** * Returns the title for the payment method configuration edit form. * * @param \Drupal\payment\Entity\PaymentMethodConfigurationInterface $payment_method_configuration * * @return string */ public function title(PaymentMethodConfigurationInterface $payment_method_configuration) { return $this->t('Edit %label', ['%label' => $payment_method_configuration->label()]); }