You are here

public function Unlimited::calculateStart in Recurring Time Period 8

Calculates the end of the previous period.

Parameters

\DateTimeImmutable $date: The date and time to begin the period from.

Return value

\DateTimeImmutable|int The expiry date and time, or RecurringPeriodInterface::UNLIMITED.

Overrides RecurringPeriodBase::calculateStart

File

src/Plugin/RecurringPeriod/Unlimited.php, line 40

Class

Unlimited
Provides a period that never ends.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function calculateStart(\DateTimeImmutable $date) {
  return self::UNLIMITED;
}