You are here

PaymentTypeBase.php in Commerce Core 8.2

File

modules/payment/src/Plugin/Commerce/PaymentType/PaymentTypeBase.php
View source
<?php

namespace Drupal\commerce_payment\Plugin\Commerce\PaymentType;

use Drupal\Core\Plugin\PluginBase;

/**
 * Provides the base payment type class.
 */
abstract class PaymentTypeBase extends PluginBase implements PaymentTypeInterface {

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return $this->pluginDefinition['label'];
  }

  /**
   * {@inheritdoc}
   */
  public function getWorkflowId() {
    return $this->pluginDefinition['workflow'];
  }

}

Classes

Namesort descending Description
PaymentTypeBase Provides the base payment type class.