You are here

public function DefaultDateRecurOccurrenceHandler::key in Recurring Dates Field 8

Return the key of the current element

File

src/Plugin/DateRecurOccurrenceHandler/DefaultDateRecurOccurrenceHandler.php, line 474

Class

DefaultDateRecurOccurrenceHandler
Provides the default occurrence handler.

Namespace

Drupal\date_recur\Plugin\DateRecurOccurrenceHandler

Code

public function key() {
  if (empty($this->rruleObject)) {
    return NULL;
  }
  return $this->rruleObject
    ->key();
}