You are here

public function CommercePaymentMethodType::__construct in Commerce Core 8.2

Constructs a new CommercePaymentMethodType object.

Parameters

array $values: The annotation values.

Overrides Plugin::__construct

File

modules/payment/src/Annotation/CommercePaymentMethodType.php, line 51

Class

CommercePaymentMethodType
Defines the payment method type plugin annotation object.

Namespace

Drupal\commerce_payment\Annotation

Code

public function __construct(array $values) {
  if (empty($values['create_label'])) {
    $values['create_label'] = $values['label'];
  }
  parent::__construct($values);
}