public static function DurationServiceInterface::convertValue in Duration Field 8
Convert array into PHP duration format.
Parameters
array $input: An array containing any of the following keys:
- year
- month
- day
- hour
- minute
- second.
Return value
string A string in Iso 8601 duration format
See also
http://en.wikipedia.org/wiki/Iso8601#Durations
1 method overrides DurationServiceInterface::convertValue()
- DurationService::convertValue in src/
Service/ DurationService.php - Convert array into PHP duration format.
File
- src/
Service/ DurationServiceInterface.php, line 41
Class
- DurationServiceInterface
- Interface for classes providing services for the Duration Field module.
Namespace
Drupal\duration_field\ServiceCode
public static function convertValue(array $input);