You are here

public function Subscription::getOrderIds in Commerce Recurring Framework 8

Gets the recurring order IDs.

Return value

int[] The recurring order IDs.

Overrides SubscriptionInterface::getOrderIds

1 call to Subscription::getOrderIds()
Subscription::getCurrentOrder in src/Entity/Subscription.php
Gets the current draft recurring order.

File

src/Entity/Subscription.php, line 337

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getOrderIds() {
  $order_ids = [];
  foreach ($this
    ->get('orders') as $field_item) {
    $order_ids[] = $field_item->target_id;
  }
  return $order_ids;
}