You are here

public function McrouterStatsObject::getServerTime in Memcache API and Integration 8.2

@inheritDoc

Overrides MemcacheStatsObject::getServerTime

File

memcache_admin/src/Stats/McrouterStatsObject.php, line 35

Class

McrouterStatsObject
Class MemcacheStats.

Namespace

Drupal\memcache_admin\Stats

Code

public function getServerTime() : string {
  return isset($this->stats['time']) ? \Drupal::service('date.formatter')
    ->format($this->stats['time']) : self::NA;
}