public function Subscription::removeOrder in Commerce Recurring Framework 8
Removes a recurring order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The recurring order.
Return value
$this
Overrides SubscriptionInterface::removeOrder
File
- src/
Entity/ Subscription.php, line 373
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function removeOrder(OrderInterface $order) {
$index = $this
->getOrderIndex($order);
if ($index !== FALSE) {
$this
->get('orders')
->offsetUnset($index);
}
return $this;
}