You are here

public function Subscription::applyScheduledChanges in Commerce Recurring Framework 8

Apply the scheduled changes.

Return value

$this

Overrides SubscriptionInterface::applyScheduledChanges

File

src/Entity/Subscription.php, line 660

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function applyScheduledChanges() {
  foreach ($this
    ->getScheduledChanges() as $scheduled_change) {
    $this
      ->set($scheduled_change
      ->getFieldName(), $scheduled_change
      ->getValue());
  }
  $this
    ->removeScheduledChanges();
  return $this;
}