You are here

public function DateRecurOccurrencesComputed::getValue in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/DateRecurOccurrencesComputed.php \Drupal\date_recur\Plugin\Field\DateRecurOccurrencesComputed::getValue()
  2. 3.0.x src/Plugin/Field/DateRecurOccurrencesComputed.php \Drupal\date_recur\Plugin\Field\DateRecurOccurrencesComputed::getValue()
  3. 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\Field

Code

public function getValue($langcode = NULL) : \Generator {
  yield from $this
    ->getParent()
    ->getHelper()
    ->generateOccurrences();
}