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\Type
Code
public function getDuration();
Please login to continue.