public function DurationInterface::getDuration
public DurationInterface::getDuration()
Returns the duration.
Return value
\DateInterval|null A DateInterval object or NULL if there is no duration.
Throws
\Exception
File
- core/lib/Drupal/Core/TypedData/Type/DurationInterface.php, line 20
Class
- DurationInterface
- Interface for durations.
Namespace
Drupal\Core\TypedData\TypeCode
public function getDuration();
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Type!DurationInterface.php/function/DurationInterface::getDuration/8.1.x