You are here

public function Invoice::getBillingProfile in Commerce Invoice 8.2

Gets the billing profile.

Return value

\Drupal\profile\Entity\ProfileInterface|null The billing profile, or NULL if none found.

Overrides InvoiceInterface::getBillingProfile

1 call to Invoice::getBillingProfile()
Invoice::preSave in src/Entity/Invoice.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Invoice.php, line 200

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getBillingProfile() {
  return $this
    ->get('billing_profile')->entity;
}