public function DateRecurHelperInterface::generateOccurrences in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x src/DateRecurHelperInterface.php \Drupal\date_recur\DateRecurHelperInterface::generateOccurrences()
- 3.0.x src/DateRecurHelperInterface.php \Drupal\date_recur\DateRecurHelperInterface::generateOccurrences()
- 3.1.x src/DateRecurHelperInterface.php \Drupal\date_recur\DateRecurHelperInterface::generateOccurrences()
Calculates occurrences as a generator.
Parameters
\DateTimeInterface|null $rangeStart: The start of the range, or start with the first available occurrence.
\DateTimeInterface|null $rangeEnd: The end of the range, or never end.
Return value
\Generator|\Drupal\date_recur\DateRange[] A date range generator.
3 methods override DateRecurHelperInterface::generateOccurrences()
- DateRecurHelper::generateOccurrences in src/
DateRecurHelper.php - Calculates occurrences as a generator.
- DateRecurNonRecurringHelper::generateOccurrences in src/
DateRecurNonRecurringHelper.php - Calculates occurrences as a generator.
- RlHelper::generateOccurrences in src/
Rl/ RlHelper.php - Calculates occurrences as a generator.
File
- src/
DateRecurHelperInterface.php, line 56
Class
- DateRecurHelperInterface
- Interface for recurring rule helper.
Namespace
Drupal\date_recurCode
public function generateOccurrences(?\DateTimeInterface $rangeStart = NULL, ?\DateTimeInterface $rangeEnd = NULL) : \Generator;