You are here

function monitoring_value_label_callback_interval in Monitoring 7

Same name and namespace in other branches
  1. 8 monitoring.module \monitoring_value_label_callback_interval()

Formatter for time interval value.

Parameters

\Drupal\monitoring\Result\SensorResultInterface $result: Result object for which to get the formatted value.

Return value

string Formatted time interval.

See also

format_interval()

1 string reference to 'monitoring_value_label_callback_interval'
monitoring_value_types in ./monitoring.module
Gets available value types definitions.

File

./monitoring.module, line 703
Monitoring bootstrap file.

Code

function monitoring_value_label_callback_interval(SensorResultInterface $result) {
  return format_interval($result
    ->getValue());
}