public function Subscription::setTrialEndTime in Commerce Recurring Framework 8
Sets the trial end timestamp.
Parameters
int $timestamp: The trial end timestamp.
Return value
$this
Overrides SubscriptionInterface::setTrialEndTime
1 call to Subscription::setTrialEndTime()
- Subscription::preSave in src/
Entity/ Subscription.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Subscription.php, line 506
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function setTrialEndTime($timestamp) {
$this
->set('trial_ends', $timestamp);
return $this;
}