You are here

public function Payment::isCompleted in Commerce Core 8.2

Gets whether the payment has been completed.

Return value

bool TRUE if the payment has been completed, FALSE otherwise.

Overrides PaymentInterface::isCompleted

1 call to Payment::isCompleted()
Payment::postSave in modules/payment/src/Entity/Payment.php
Acts on a saved entity before the insert or update hook is invoked.

File

modules/payment/src/Entity/Payment.php, line 298

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function isCompleted() {
  return !$this
    ->get('completed')
    ->isEmpty();
}