public function Subscription::getEndDate in Commerce Recurring Framework 8
Gets the end timestamp as a DrupalDateTime object.
Return value
\Drupal\Core\Datetime\DrupalDateTime|null The end date/time, or NULL if not yet known.
Overrides SubscriptionInterface::getEndDate
File
- src/
Entity/ Subscription.php, line 567
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function getEndDate() {
if ($end_time = $this
->getEndTime()) {
return DrupalDateTime::createFromTimestamp($end_time);
}
}