public function DateRecurOccurrencesComputed::getValue in Recurring Dates Field 8
Gets the data value.
Return value
mixed The data value.
Overrides ItemList::getValue
1 call to DateRecurOccurrencesComputed::getValue()
- DateRecurOccurrencesComputed::isEmpty in src/
DateRecurOccurrencesComputed.php - Determines whether the list contains any non-empty items.
File
- src/
DateRecurOccurrencesComputed.php, line 24
Class
Namespace
Drupal\date_recurCode
public function getValue($langcode = NULL) {
/** @var DateRecurItem $item */
$item = $this
->getParent();
if ($item instanceof DateRecurItem) {
$values = $item
->getOccurrenceHandler()
->getOccurrencesForComputedProperty();
$this
->setValue($values);
}
return parent::getValue();
}