public function DurationServiceInterface::getSecondsFromDateInterval in Duration Field 3.0.x
Same name and namespace in other branches
- 8.2 src/Service/DurationServiceInterface.php \Drupal\duration_field\Service\DurationServiceInterface::getSecondsFromDateInterval()
Get the number of seconds a given duration represents.
Parameters
\DateInterval $dateInterval: The DateInterval representing the duration.
Return value
int The number of seconds the interval represents.
1 method overrides DurationServiceInterface::getSecondsFromDateInterval()
- DurationService::getSecondsFromDateInterval in src/
Service/ DurationService.php - Get the number of seconds a given duration represents.
File
- src/
Service/ DurationServiceInterface.php, line 127
Class
- DurationServiceInterface
- Interface for classes providing services for the Duration Field module.
Namespace
Drupal\duration_field\ServiceCode
public function getSecondsFromDateInterval(DateInterval $dateInterval);