You are here

protected function MemcacheStatisticsController::defaultBin in Memcache API and Integration 8.2

Helper function. Returns the bin name.

2 calls to MemcacheStatisticsController::defaultBin()
MemcacheStatisticsController::binMapping in memcache_admin/src/Controller/MemcacheStatisticsController.php
Helper function, reverse map the memcache_bins variable.
MemcacheStatisticsController::getBinMapping in memcache_admin/src/Controller/MemcacheStatisticsController.php
Helper function, reverse map the memcache_bins variable.

File

memcache_admin/src/Controller/MemcacheStatisticsController.php, line 334

Class

MemcacheStatisticsController
Memcache Statistics.

Namespace

Drupal\memcache_admin\Controller

Code

protected function defaultBin($bin) {
  if ($bin == 'default') {
    return 'cache';
  }
  return $bin;
}