You are here

public function Subscription::getBillingSchedule in Commerce Recurring Framework 8

Gets the billing schedule.

Return value

\Drupal\commerce_recurring\Entity\BillingScheduleInterface The billing schedule.

Overrides SubscriptionInterface::getBillingSchedule

1 call to Subscription::getBillingSchedule()
Subscription::preSave in src/Entity/Subscription.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Subscription.php, line 125

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getBillingSchedule() {
  return $this
    ->get('billing_schedule')->entity;
}