public function RecurringPeriodInterface::getPeriodFromDate in Recurring Time Period 8
Gets a period object that begins on a given date.
Parameters
\DateTimeImmutable $start: The date and time to begin the period from.
Return value
\Drupal\recurring_period\Datetime\Period The period value object.
1 method overrides RecurringPeriodInterface::getPeriodFromDate()
- RecurringPeriodBase::getPeriodFromDate in src/
Plugin/ RecurringPeriod/ RecurringPeriodBase.php - Gets a period object that begins on a given date.
File
- src/
Plugin/ RecurringPeriod/ RecurringPeriodInterface.php, line 122
Class
- RecurringPeriodInterface
- Defines an interface for recurring period plugins.
Namespace
Drupal\recurring_period\Plugin\RecurringPeriodCode
public function getPeriodFromDate(\DateTimeImmutable $start);