public function Subscription::getTrialStartTime in Commerce Recurring Framework 8
Gets the trial start timestamp.
Return value
int The trial start timestamp.
Overrides SubscriptionInterface::getTrialStartTime
2 calls to Subscription::getTrialStartTime()
- Subscription::getTrialStartDate in src/
Entity/ Subscription.php - Gets the trial start timestamp as a DrupalDateTime object.
- Subscription::preSave in src/
Entity/ Subscription.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Subscription.php, line 484
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function getTrialStartTime() {
return $this
->get('trial_starts')->value;
}