You are here

public function Invoice::getPaymentMethod in Commerce Invoice 8.2

Gets the payment method.

Return value

string The payment method.

Overrides InvoiceInterface::getPaymentMethod

File

src/Entity/Invoice.php, line 362

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getPaymentMethod() {
  return $this
    ->get('payment_method')->value;
}