interface PaymentMethodTypeInterface in Commerce Core 8.2
Defines the interface for payment method types.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\entity\BundlePlugin\BundlePluginInterface
- interface \Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType\PaymentMethodTypeInterface
- interface \Drupal\entity\BundlePlugin\BundlePluginInterface
Expanded class hierarchy of PaymentMethodTypeInterface
All classes that implement PaymentMethodTypeInterface
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentMethodType/ PaymentMethodTypeInterface.php, line 11
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentMethodTypeView source
interface PaymentMethodTypeInterface extends BundlePluginInterface {
/**
* Gets the payment method type label.
*
* @return string
* The payment method type label.
*/
public function getLabel();
/**
* Gets the payment method type create label.
*
* @return string
* The payment method type create label.
*/
public function getCreateLabel();
/**
* Builds a label for the given payment method.
*
* @param \Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method
* The payment method.
*
* @return string
* The label.
*/
public function buildLabel(PaymentMethodInterface $payment_method);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BundlePluginInterface:: |
public | function | Builds the field definitions for entities of this bundle. | 2 |
PaymentMethodTypeInterface:: |
public | function | Builds a label for the given payment method. | 2 |
PaymentMethodTypeInterface:: |
public | function | Gets the payment method type create label. | 1 |
PaymentMethodTypeInterface:: |
public | function | Gets the payment method type label. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |