You are here

public function DateRecurNonRecurringHelper::key in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurNonRecurringHelper.php \Drupal\date_recur\DateRecurNonRecurringHelper::key()
  2. 3.x src/DateRecurNonRecurringHelper.php \Drupal\date_recur\DateRecurNonRecurringHelper::key()
  3. 3.1.x src/DateRecurNonRecurringHelper.php \Drupal\date_recur\DateRecurNonRecurringHelper::key()

File

src/DateRecurNonRecurringHelper.php, line 119

Class

DateRecurNonRecurringHelper
Dummy helper for handling non-recurring values.

Namespace

Drupal\date_recur

Code

public function key() : ?int {
  $key = key($this->occurrences);
  assert(is_int($key));
  return $key;
}