PaymentMethodTypeBase.php in Commerce Core 8.2
File
modules/payment/src/Plugin/Commerce/PaymentMethodType/PaymentMethodTypeBase.php
View source
<?php
namespace Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType;
use Drupal\Core\Plugin\PluginBase;
abstract class PaymentMethodTypeBase extends PluginBase implements PaymentMethodTypeInterface {
public function getLabel() {
return $this->pluginDefinition['label'];
}
public function getCreateLabel() {
return $this->pluginDefinition['create_label'];
}
public function buildFieldDefinitions() {
return [];
}
}