public function Subscription::hasOrder in Commerce Recurring Framework 8
Checks whether the order has a given recurring order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The recurring order.
Return value
bool TRUE if the recurring order was found, FALSE otherwise.
Overrides SubscriptionInterface::hasOrder
1 call to Subscription::hasOrder()
- Subscription::addOrder in src/
Entity/ Subscription.php - Adds a recurring order.
File
- src/
Entity/ Subscription.php, line 384
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function hasOrder(OrderInterface $order) {
return $this
->getOrderIndex($order) !== FALSE;
}