You are here

public function DateRecurRRule::current in Recurring Dates Field 8

Return the current element

File

src/DateRecurRRule.php, line 378

Class

DateRecurRRule

Namespace

Drupal\date_recur

Code

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