public function DurationService::createEmptyDateInterval in Duration Field 8.2
Same name and namespace in other branches
- 3.0.x src/Service/DurationService.php \Drupal\duration_field\Service\DurationService::createEmptyDateInterval()
1 call to DurationService::createEmptyDateInterval()
- DurationService::getDateIntervalFromDurationString in src/
Service/ DurationService.php - Convert an ISO 8601 string into a PHP DateInterval object.
File
- src/
Service/ DurationService.php, line 115
Class
- DurationService
- Provides services for the Duration Field module.
Namespace
Drupal\duration_field\ServiceCode
public function createEmptyDateInterval() {
return new DateInterval(Iso8601StringInterface::EMPTY_DURATION);
}