public DurationInterface::setDuration(\DateInterval $duration)
Sets the duration.
Parameters
\DateInterval $duration: A duration to set.
File
- core/lib/Drupal/Core/TypedData/Type/DurationInterface.php, line 28
Class
- DurationInterface
- Interface for durations.
Namespace
Drupal\Core\TypedData\Type
Code
public function setDuration(\DateInterval $duration);
Please login to continue.