You are here

public function ScheduledChangeItem::toScheduledChange in Commerce Recurring Framework 8

Gets the scheduled change value object for the current field item.

Return value

\Drupal\commerce_recurring\ScheduledChange The scheduled change object.

File

src/Plugin/Field/FieldType/ScheduledChangeItem.php, line 98

Class

ScheduledChangeItem
Plugin implementation of the 'commerce_scheduled_change' field type.

Namespace

Drupal\commerce_recurring\Plugin\Field\FieldType

Code

public function toScheduledChange() {
  return new ScheduledChange($this->field_name, $this->value, $this->created);
}