You are here

public function PaymentMethod::isReusable in Commerce Core 8.2

Gets whether the payment method is reusable.

Return value

bool TRUE if the payment method is reusable, FALSE otherwise.

Overrides PaymentMethodInterface::isReusable

File

modules/payment/src/Entity/PaymentMethod.php, line 146

Class

PaymentMethod
Defines the payment method entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function isReusable() {
  return (bool) $this
    ->get('reusable')->value;
}