commit 0deb0181e490753bbec91e3c18bd8332dc7fe9d3 parent 1a50f0b18f3148a65059c54f0dc7cdd1af4000a3 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 19 Oct 2025 16:40:10 +0200 fix minor issues Diffstat:
| M | src/Form/TurnstileSettingsForm.php | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/Form/TurnstileSettingsForm.php b/src/Form/TurnstileSettingsForm.php @@ -2,15 +2,10 @@ namespace Drupal\turnstile\Form; -use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; -use Drupal\field\Entity\FieldStorageConfig; -use Drupal\field\Entity\FieldConfig; -use Drupal\Core\Entity\Entity\EntityFormDisplay; -use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\turnstile\TurnstileFieldManager; use Drupal\turnstile\TalerMerchantApiService; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -197,7 +192,8 @@ class TurnstileSettingsForm extends ConfigFormBase { return; default: $form_state->setErrorByName('payment_backend_url', - $this->t('Unexpected response (' . $response->getStatusCode() . ') from merchant backend')); + $this->t('Unexpected response (@status) from merchant backend', + [ '@status' => $http_status ])); return; } // end switch on HTTP status