We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b26425d commit d8a1240Copy full SHA for d8a1240
1 file changed
modules/payment/src/Form/PaymentGatewayForm.php
@@ -36,6 +36,20 @@ public static function create(ContainerInterface $container) {
36
);
37
}
38
39
+ /**
40
+ * {@inheritdoc}
41
+ */
42
+ public function buildForm(array $form, FormStateInterface $form_state) {
43
+ if (empty($this->pluginManager->getDefinitions())) {
44
+ $form['warning'] = [
45
+ '#markup' => $this->t('No payment gateway plugins found. Please install a module which provides one.'),
46
+ ];
47
+ return $form;
48
+ }
49
+
50
+ return parent::buildForm($form, $form_state);
51
52
53
/**
54
* {@inheritdoc}
55
*/
0 commit comments