public static function Cache::getBins in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/Cache.php \Drupal\Core\Cache\Cache::getBins()
Gets all cache bin services.
Return value
array An array of cache backend objects keyed by cache bins.
8 calls to Cache::getBins()
- BrowserTestBase::refreshVariables in core/modules/ simpletest/ src/ BrowserTestBase.php 
- Refreshes in-memory configuration and state information.
- ClearTest::testFlushAllCaches in core/modules/ system/ src/ Tests/ Cache/ ClearTest.php 
- Tests drupal_flush_all_caches().
- ConfigTranslationDeleteForm::submitForm in core/modules/ config_translation/ src/ Form/ ConfigTranslationDeleteForm.php 
- Form submission handler.
- drupal_flush_all_caches in core/includes/ common.inc 
- Flushes all persistent caches, resets all variables, and rebuilds all data structures.
- drupal_rebuild in core/includes/ utility.inc 
- Rebuilds all caches even when Drupal itself does not work.
File
- core/lib/ Drupal/ Core/ Cache/ Cache.php, line 159 
- Contains \Drupal\Core\Cache\Cache.
Class
- Cache
- Helper methods for cache.
Namespace
Drupal\Core\CacheCode
public static function getBins() {
  $bins = array();
  $container = \Drupal::getContainer();
  foreach ($container
    ->getParameter('cache_bins') as $service_id => $bin) {
    $bins[$bin] = $container
      ->get($service_id);
  }
  return $bins;
}