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\EntityCode
public function applyScheduledChanges() {
foreach ($this
->getScheduledChanges() as $scheduled_change) {
$this
->set($scheduled_change
->getFieldName(), $scheduled_change
->getValue());
}
$this
->removeScheduledChanges();
return $this;
}