You are here

public function DefaultDateRecurOccurrenceHandler::valid in Recurring Dates Field 8

Checks if current position is valid

File

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

Class

DefaultDateRecurOccurrenceHandler
Provides the default occurrence handler.

Namespace

Drupal\date_recur\Plugin\DateRecurOccurrenceHandler

Code

public function valid() {
  if (empty($this->rruleObject)) {
    return FALSE;
  }
  return $this->rruleObject
    ->valid();
}