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