You are here

public function ShippingOrderManagerInterface::createProfile in Commerce Shipping 8.2

Creates a shipping profile for the given order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

array $values: (optional) An array of field values to set on the profile.

Return value

\Drupal\profile\Entity\ProfileInterface A shipping profile.

1 method overrides ShippingOrderManagerInterface::createProfile()
ShippingOrderManager::createProfile in src/ShippingOrderManager.php
Creates a shipping profile for the given order.

File

src/ShippingOrderManagerInterface.php, line 26

Class

ShippingOrderManagerInterface

Namespace

Drupal\commerce_shipping

Code

public function createProfile(OrderInterface $order, array $values = []);