public function Order::setBillingProfile in Commerce Core 8.2
Sets the billing profile.
Parameters
\Drupal\profile\Entity\ProfileInterface $profile: The billing profile.
Return value
$this
Overrides OrderInterface::setBillingProfile
File
- modules/
order/ src/ Entity/ Order.php, line 235
Class
- Order
- Defines the order entity class.
Namespace
Drupal\commerce_order\EntityCode
public function setBillingProfile(ProfileInterface $profile) {
$this
->set('billing_profile', $profile);
return $this;
}