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