public function DateRecurHelper::getExcluded in Recurring Dates Field 3.x
Same name and namespace in other branches
- 8.2 src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getExcluded()
- 3.0.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getExcluded()
- 3.1.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getExcluded()
Get excluded dates.
Excluded dates are intended to match the start date of occurrences. Excluded dates may not necessarily intersect with occurrences. Excluded dates in the same time zone as the initial dates.
Implementors of this method are responsible for ensuring time zone is normalised.
Return value
\DateTimeInterface[] An array of excluded dates.
Overrides DateRecurHelperInterface::getExcluded
File
- src/
DateRecurHelper.php, line 103
Class
- DateRecurHelper
- Helper for recurring rules.
Namespace
Drupal\date_recurCode
public function getExcluded() : array {
$exDates = $this->dateRecurHelper
->getExcluded();
assert(Inspector::assertAllObjects($exDates, \DateTimeInterface::class));
return $exDates;
}