You are here

public function PaymentMethodInterface::setDefault in Commerce Core 8.2

Sets whether this is the user's default payment method.

Parameters

bool $default: Whether this is the user's default payment method.

Return value

$this

1 method overrides PaymentMethodInterface::setDefault()
PaymentMethod::setDefault in modules/payment/src/Entity/PaymentMethod.php
Sets whether this is the user's default payment method.

File

modules/payment/src/Entity/PaymentMethodInterface.php, line 108

Class

PaymentMethodInterface
Defines the interface for payment methods.

Namespace

Drupal\commerce_payment\Entity

Code

public function setDefault($default);