OnsitePaymentGatewayBase.php in Commerce Core 8.2
File
modules/payment/src/Plugin/Commerce/PaymentGateway/OnsitePaymentGatewayBase.php
View source
<?php
namespace Drupal\commerce_payment\Plugin\Commerce\PaymentGateway;
use Drupal\Core\Form\FormStateInterface;
abstract class OnsitePaymentGatewayBase extends PaymentGatewayBase implements OnsitePaymentGatewayInterface {
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['display_label']['#access'] = FALSE;
return $form;
}
protected function getDefaultForms() {
return [
'add-payment' => 'Drupal\\commerce_payment\\PluginForm\\OnsitePaymentAddForm',
] + parent::getDefaultForms();
}
}