You are here

public function Subscription::hasScheduledChanges in Commerce Recurring Framework 8

Gets whether the subscription has scheduled changes.

Return value

bool TRUE if the subscription has scheduled changes, FALSE otherwise.

Overrides SubscriptionInterface::hasScheduledChanges

File

src/Entity/Subscription.php, line 588

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function hasScheduledChanges() {
  return !$this
    ->get('scheduled_changes')
    ->isEmpty();
}