public function Subscription::setInitialOrder in Commerce Recurring Framework 8
Sets the initial order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $initial_order: The initial order.
Return value
$this
Overrides SubscriptionInterface::setInitialOrder
File
- src/
Entity/ Subscription.php, line 298
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function setInitialOrder(OrderInterface $initial_order) {
$this
->set('initial_order', $initial_order);
return $this;
}