function DurationInterface::getDurationAsIso8601Abnf

Returns the duration as an ISO 8601 ABNF string.

Return value

string ABNF-formatted duration.

See also

https://datatracker.ietf.org/doc/html/rfc3339#appendix-A

2 methods override DurationInterface::getDurationAsIso8601Abnf()
DurationIso8601::getDurationAsIso8601Abnf in core/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php
Returns the duration as an ISO 8601 ABNF string.
TimeSpan::getDurationAsIso8601Abnf in core/lib/Drupal/Core/TypedData/Plugin/DataType/TimeSpan.php
Returns the duration as an ISO 8601 ABNF string.

File

core/lib/Drupal/Core/TypedData/Type/DurationInterface.php, line 30

Class

DurationInterface
Interface for durations.

Namespace

Drupal\Core\TypedData\Type

Code

public function getDurationAsIso8601Abnf() : string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.