You are here

public function BeforePackEvent::setShippingProfile in Commerce FedEx 8

Sets the shipping profile.

Parameters

\Drupal\profile\Entity\ProfileInterface $shipping_profile: The shipping profile.

Return value

$this

File

src/Event/BeforePackEvent.php, line 119

Class

BeforePackEvent
Defines the before pack event for FedEx.

Namespace

Drupal\commerce_fedex\Event

Code

public function setShippingProfile(ProfileInterface $shipping_profile) {
  $this->shippingProfile = $shipping_profile;
  return $this;
}