public function DefaultDateRecurOccurrenceHandler::humanReadable in Recurring Dates Field 8
Get a human-readable representation of the repeat rule.
Return value
string
Overrides DateRecurOccurrenceHandlerInterface::humanReadable
File
- src/
Plugin/ DateRecurOccurrenceHandler/ DefaultDateRecurOccurrenceHandler.php, line 129
Class
- DefaultDateRecurOccurrenceHandler
- Provides the default occurrence handler.
Namespace
Drupal\date_recur\Plugin\DateRecurOccurrenceHandlerCode
public function humanReadable() {
if (empty($this->item) || !$this->isRecurring) {
return '';
}
return $this->rruleObject
->humanReadable();
}