public function RecurringPeriodInterface::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.
1 method overrides RecurringPeriodInterface::calculateStart()
- RecurringPeriodBase::calculateStart in src/
Plugin/ RecurringPeriod/ RecurringPeriodBase.php - Calculates the end of the previous period.
File
- src/
Plugin/ RecurringPeriod/ RecurringPeriodInterface.php, line 76
Class
- RecurringPeriodInterface
- Defines an interface for recurring period plugins.
Namespace
Drupal\recurring_period\Plugin\RecurringPeriodCode
public function calculateStart(\DateTimeImmutable $date);