You are here

public function Subscription::getTrialStartDate in Commerce Recurring Framework 8

Gets the trial start timestamp as a DrupalDateTime object.

Return value

\Drupal\Core\Datetime\DrupalDateTime The trial start date/time.

Overrides SubscriptionInterface::getTrialStartDate

1 call to Subscription::getTrialStartDate()
Subscription::preSave in src/Entity/Subscription.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Subscription.php, line 514

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getTrialStartDate() {
  return DrupalDateTime::createFromTimestamp($this
    ->getTrialStartTime());
}