public function DateRecurOccurrencesComputed::getValue in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/DateRecurOccurrencesComputed.php \Drupal\date_recur\Plugin\Field\DateRecurOccurrencesComputed::getValue()
- 3.0.x src/Plugin/Field/DateRecurOccurrencesComputed.php \Drupal\date_recur\Plugin\Field\DateRecurOccurrencesComputed::getValue()
- 3.1.x src/Plugin/Field/DateRecurOccurrencesComputed.php \Drupal\date_recur\Plugin\Field\DateRecurOccurrencesComputed::getValue()
@yield \Generator An occurrence generator.
Overrides ItemList::getValue
File
- src/
Plugin/ Field/ DateRecurOccurrencesComputed.php, line 27
Class
- DateRecurOccurrencesComputed
- Provides values for the computed 'occurrences' property on date recur fields.
Namespace
Drupal\date_recur\Plugin\FieldCode
public function getValue($langcode = NULL) : \Generator {
yield from $this
->getParent()
->getHelper()
->generateOccurrences();
}