You are here

public function DateRecurRRule::next in Recurring Dates Field 8

Move forward to next element

File

src/DateRecurRRule.php, line 387

Class

DateRecurRRule

Namespace

Drupal\date_recur

Code

public function next() {
  if ($date = $this->rrule
    ->next()) {
    return $this
      ->massageOccurrence($date);
  }
}