You are here

public function Subscription::getTrialEndTime in Commerce Recurring Framework 8

Gets the trial end timestamp.

Return value

int The trial end timestamp.

Overrides SubscriptionInterface::getTrialEndTime

2 calls to Subscription::getTrialEndTime()
Subscription::getTrialEndDate in src/Entity/Subscription.php
Gets the trial end 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 499

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getTrialEndTime() {
  return $this
    ->get('trial_ends')->value;
}