You are here

public function Order::getBillingProfile in Commerce Core 8.2

Gets the billing profile.

Return value

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

Overrides OrderInterface::getBillingProfile

2 calls to Order::getBillingProfile()
Order::collectProfiles in modules/order/src/Entity/Order.php
Collects all profiles that belong to the order.
Order::preSave in modules/order/src/Entity/Order.php
Acts on an entity before the presave hook is invoked.

File

modules/order/src/Entity/Order.php, line 228

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

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