You are here

public function CustomerProfileEvent::setCustomerProfile in Commerce Core 8.2

Sets the customer profile.

Parameters

\Drupal\profile\Entity\ProfileInterface $customer_profile: The customer profile.

Return value

$this

File

modules/tax/src/Event/CustomerProfileEvent.php, line 61

Class

CustomerProfileEvent
Defines the customer profile event.

Namespace

Drupal\commerce_tax\Event

Code

public function setCustomerProfile(ProfileInterface $customer_profile) {
  $this->customerProfile = $customer_profile;
  return $this;
}