You are here

interface PaymentMethodTypeInterface in Commerce Core 8.2

Defines the interface for payment method types.

Hierarchy

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\PaymentMethodType
View 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

Namesort descending Modifiers Type Description Overrides
BundlePluginInterface::buildFieldDefinitions public function Builds the field definitions for entities of this bundle. 2
PaymentMethodTypeInterface::buildLabel public function Builds a label for the given payment method. 2
PaymentMethodTypeInterface::getCreateLabel public function Gets the payment method type create label. 1
PaymentMethodTypeInterface::getLabel public function Gets the payment method type label. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2