PaymentTypeBase.php in Commerce Core 8.2
File
modules/payment/src/Plugin/Commerce/PaymentType/PaymentTypeBase.phpView 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
Name | Description |
---|---|
PaymentTypeBase | Provides the base payment type class. |